HTML <figcaption> or Figure Caption element represents a caption or legend describing the rest of the contents of its parent <figure> 元素。

The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

内容类别 None.
准许内容 流内容 .
Tag omission None, both the starting and ending tag are mandatory.
Permitted parents A <figure> element; the <figcaption> element must be its first or last child.
Implicit ARIA role 无对应角色
Permitted ARIA roles group , none , presentation
DOM 接口 HTMLElement

属性

此元素只包括 全局属性 .

范例

请参阅 <figure> page for examples on <figcaption> .

规范

规范 状态 注释
HTML 实时标准
The definition of '<figcaption>' in that specification.
实时标准
HTML5
The definition of '<figcaption>' in that specification.
推荐

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
figcaption Chrome 完整支持 8 Edge 完整支持 12 Firefox 完整支持 4 IE 完整支持 9 Opera 完整支持 11 Safari 完整支持 5.1 WebView Android 完整支持 Yes Chrome Android 完整支持 Yes Firefox Android 完整支持 4 Opera Android 完整支持 11 Safari iOS 完整支持 5.1 Samsung Internet Android 完整支持 Yes

图例

完整支持

完整支持

另请参阅

元数据

  • 最后修改: