HTML ?? ???
/ <figure>
<figure>
HTML <figure> 標(biāo)簽 實例 使用 <figure> 元素標(biāo)記文檔中的一個圖像: <figure> <img src='img_pulpit.jpg' alt='The Pulpit Rock' width='304' height="200" >....
HTML <figure> 標(biāo)簽
實例
<!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" tppabs="http://w3schools.com/tags/img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228"> </figure> </body> </html>
運行實例 ?
點擊 "運行實例" 按鈕查看在線實例
瀏覽器支持
IE 9、Firefox、Opera、Chrome 和 Safari 支持 <figure> 標(biāo)簽。
注釋:IE 8 或更早版本的 IE 瀏覽器不支持 <figure> 標(biāo)簽。
標(biāo)簽定義及使用說明
<figure> 標(biāo)簽規(guī)定獨立的流內(nèi)容(圖像、圖表、照片、代碼等等)。
<figure> 元素的內(nèi)容應(yīng)該與主內(nèi)容相關(guān),同時元素的位置相對于主內(nèi)容是獨立的。如果被刪除,則不應(yīng)對文檔流產(chǎn)生影響。
HTML 4.01 與 HTML5之間的差異
<figure> 標(biāo)簽是 HTML 5 中的新標(biāo)簽。
提示和注釋
提示:<figcaption> 元素被用來為 <figure> 元素定義標(biāo)題。
全局屬性
<figure> 標(biāo)簽支持 HTML 的全局屬性。
事件屬性
<figure> 標(biāo)簽支持 HTML 的事件屬性。