html figcaption标签怎么用

藏色散人
藏色散人 原创
2019-05-28 11:19:20 3714浏览

html figcaption标签用于定义 figure 元素的标题(caption)。"figcaption" 元素应该被置于 "figure" 元素的第一个或最后一个子元素的位置。

html figcaption标签怎么用?

作用:定义 figure 元素的标题(caption)。

说明:"figcaption" 元素应该被置于 "figure" 元素的第一个或最后一个子元素的位置。

注释:所有主流浏览器都支持 <figcaption> 标签。Internet Explorer 8 以及更早的版本不支持 <figcaption> 标签。

html figcaption标签使用示例

<!DOCTYPE html>
<html>
<body>
<p>ThinkPHP5快速开发企业站点</p>
<figure>
    <img src="//m.sbmmt.com/tpl/Index/Static/img/banner3.jpg" alt="php.cn" width="304" height="228">
    <figcaption>Fig.1 - ThinkPHP5快速开发企业站点</figcaption>
</figure>
</body>
</html>

以上就是html figcaption标签怎么用的详细内容,更多请关注php中文网其它相关文章!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。