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

html figcaption标签怎么用-LMLPHP

html figcaption标签怎么用?

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

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

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

html figcaption标签使用示例

<!DOCTYPE html>
<html>
<body>
<p>ThinkPHP5快速开发企业站点</p>
<figure>
    <img src="http://www.php.cn/tpl/Index/Static/img/banner3.jpg" alt="php.cn" width="304" height="228">
    <figcaption>Fig.1 - ThinkPHP5快速开发企业站点</figcaption>
</figure>
</body>
</html>
登录后复制

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

09-13 09:37