HTML 開發(fā)手冊
/ <figcaption>
<figcaption>
HTML <figcaption> 標簽 實例 使用 <figure> 元素標記文檔中的一個圖像。<figure> 元素帶有一個標題: <figure> <img src='img_pulpit.jpg' alt='The Pulpit Roc>..
HTML <figcaption> 標簽
實例
<!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>
運行實例 ?
點擊 "運行實例" 按鈕查看在線實例
瀏覽器支持
IE 9、Firefox、Opera、Chrome 和 Safari 支持 <figcaption> 標簽。
注釋:IE 8 或更早版本的 IE 瀏覽器不支持 <figcaption> 標簽。
標簽定義及使用說明
<figcaption> 標簽為 <figure> 元素定義標題。
<figcaption> 元素應(yīng)該被置于 <figure> 元素的第一個或最后一個子元素的位置。
HTML 4.01 與 HTML5之間的差異
<figcaption> 標簽是 HTML5 中的新標簽。
全局屬性
<figcaption> 標簽支持 HTML 的全局屬性。
事件屬性
<figcaption> 標簽支持 HTML 的事件屬性。