Internet Explorer 9, Firefox, Opera, Chrome 以及 Safari 支持 <figcaption> 標(biāo)簽。
注:Internet Explorer 8 以及更早的版本不支持 <figcaption> 標(biāo)簽。 ( 推薦學(xué)習(xí):html教程 )
定義和用法
<figcaption> 標(biāo)簽定義 figure 元素的標(biāo)題(caption)。
"figcaption" 元素應(yīng)該被置于 "figure" 元素的第一個(gè)或最后一個(gè)子元素的位置。
瀏覽器支持
所有主流瀏覽器都支持 <figcaption> 標(biāo)簽。
HTML 4.01 與 HTML 5 之間的差異
<figcaption> 標(biāo)簽是 HTML 5 中的新標(biāo)簽。
實(shí)例
用作文檔中插圖的圖像,帶有一個(gè)標(biāo)題::
<!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> <figcaption>Fig.1 - The Pulpit Rock, Norway.</figcaption></figure></body></html>
以上就是HTML的<figcaption>標(biāo)簽的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注武林網(wǎng)其它相關(guān)文章!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。
新聞熱點(diǎn)
疑難解答