HTML 開發(fā)手冊(cè)
/ <figcaption>
<figcaption>
HTML <figcaption> 標(biāo)簽 實(shí)例 使用 <figure> 元素標(biāo)記文檔中的一個(gè)圖像。<figure> 元素帶有一個(gè)標(biāo)題: <figure> <img src='img_pulpit.jpg' alt='The Pulpit Roc>..
HTML <figcaption> 標(biāo)簽
實(shí)例
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> </head> <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="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228"> <figcaption>Fig.1 - A view of the pulpit rock in Norway.</figcaption> </figure> </body> </html>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例
瀏覽器支持
IE 9、Firefox、Opera、Chrome 和 Safari 支持 <figcaption> 標(biāo)簽。
注釋:IE 8 或更早版本的 IE 瀏覽器不支持 <figcaption> 標(biāo)簽。
標(biāo)簽定義及使用說(shuō)明
<figcaption> 標(biāo)簽為 <figure> 元素定義標(biāo)題。
<figcaption> 元素應(yīng)該被置于 <figure> 元素的第一個(gè)或最后一個(gè)子元素的位置。
HTML 4.01 與 HTML5之間的差異
<figcaption> 標(biāo)簽是 HTML5 中的新標(biāo)簽。
全局屬性
<figcaption> 標(biāo)簽支持 HTML 的全局屬性。
事件屬性
<figcaption> 標(biāo)簽支持 HTML 的事件屬性。