html5<figcaption>标签


  翻译结果:

fig

英 [fɪg]   美 [fɪɡ]  

n.无花果;无花果树

caption

英 [ˈkæpʃn]   美 [ˈkæpʃən]  

n.字幕;标题,说明文字,字幕;第三档

vt.给(图片、照片等)加说明文字;在(文件等)上加标题;在…上加字幕

html5<figcaption>标签 语法

作用:<figcaption> 标签定义 figure 元素的标题(caption)。

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


html5<figcaption>标签 示例

<!DOCTYPE html>
<html>
<body>

<p>The Pulpit Rock is a massive cliff 604 metres (1982 feet) above Lysefjorden, opposite the Kjerag plateau, in Forsand, Ryfylke, Norway. The top of the cliff is approximately 25 by 25 metres (82 by 82 feet) square and almost flat, and is a famous tourist attraction in Norway.</p>

<figure>
  <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" alt="The Pulpit Rock" width="304" height="228">
  <figcaption>Fig.1 - The Pulpit Rock, Norway.</figcaption>
</figure>

</body>
</html>
运行实例 »

点击 "运行实例" 按钮查看在线实例

热门推荐

目录

首页

视频

问答