From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/html/element/figcaption/index.html | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 files/zh-cn/web/html/element/figcaption/index.html (limited to 'files/zh-cn/web/html/element/figcaption') diff --git a/files/zh-cn/web/html/element/figcaption/index.html b/files/zh-cn/web/html/element/figcaption/index.html new file mode 100644 index 0000000000..615e8fc953 --- /dev/null +++ b/files/zh-cn/web/html/element/figcaption/index.html @@ -0,0 +1,125 @@ +--- +title:
+slug: Web/HTML/Element/figcaption +tags: + - Element + - HTML + - HTML grouping content +translation_of: Web/HTML/Element/figcaption +--- +

{{HTMLRef}}

+ +

HTML <figcaption> 元素 是与其相关联的图片的说明/标题,用?于描述其父节点 {{HTMLElement("figure")}} 元素里的其他数据。这意味着 <figcaption> 在{{HTMLElement("figure")}} 块里是第一个或最后一个。同时 HTML Figcaption 元素是可选的;如果没有该元素,这个父节点的图片只是会没有说明/标题。

+ + + + + + + + + + + + + + + + + + + + + + + + +
内容分类
允许的内容流式内容
标签省略{{no_tag_omission}}
允许的父元素{{HTMLElement("figure")}} 元素;<figcaption> 元素必须是它的第一个或者最后一个子节点。
DOM 接口{{domxref("HTMLElement")}}
+ +

属性

+ +

仅仅包含 全局属性

+ +

示例

+ +

<figcaption> 的示例,请查看 {{HTMLElement("figure")}} 页面。

+ +

规范

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'grouping-content.html#the-figcaption-element', '<figcaption>')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'grouping-content.html#the-figcaption-element', '<figcaption>')}}{{Spec2('HTML5 W3C')}} 
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support8{{CompatGeckoDesktop("2.0")}}9.011.105.1
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support3.0{{CompatGeckoMobile("2.0")}}9.011.05.1 (iOS 5.0)
+
+ +

另见

+ + -- cgit v1.2.3-54-g00ecf