HTML <figcaption> 元素 是与其相关联的图片的说明/标题,用于描述其父节点 <figure> 元素里的其他数据。这意味着 <figcaption> 在<figure> 块里是第一个或最后一个。同时 HTML Figcaption 元素是可选的;如果没有该元素,这个父节点的图片只是会没有说明/标题。
| 内容分类 | 无 |
|---|---|
| 允许的内容 | 流式内容 |
| 标签省略 | 不允许,开始标签和结束标签都不能省略。 |
| 允许的父元素 | <figure> 元素;<figcaption> 元素必须是它的第一个或者最后一个子节点。 |
| DOM 接口 | HTMLElement |
属性
仅仅包含 全局属性
示例
<figcaption> 的示例,请查看 <figure> 页面。
规范
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard <figcaption> |
Living Standard | |
| HTML5 <figcaption> |
Recommendation |
浏览器兼容性
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 8 | 4.0 (2.0) | 9.0 | 11.10 | 5.1 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 3.0 | 4.0 (2.0) | 9.0 | 11.0 | 5.1 (iOS 5.0) |
另见
<figure>元素。