成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術(shù)文章
文章詳情頁

html - 為什么<abbr>標(biāo)簽在不一樣的瀏覽器里表現(xiàn)不一樣?

瀏覽:131日期:2023-01-13 17:40:46

問題描述

一個(gè)html文件,里面有用到<abbr>標(biāo)簽,就比如這個(gè)<abbr>DOM</abbr>。

只有這個(gè)html文件,沒加任何的CSS和JS代碼。在Chrome和Safari中,和不加abbr一樣的顯示效果,但是鼠標(biāo)懸停在關(guān)鍵詞“DOM”上還是會(huì)顯示注釋。但是用Firefox打開就能發(fā)現(xiàn)有<abbr>包住的就有下劃虛線。

為什么會(huì)有這種不一樣呢?哪一種是以后的趨勢(shì)?

下面是這個(gè)html文件的完整代碼。是《JavaScript: DOM 編程藝術(shù)》里的。

<!DOCTYPE html><html lang='en'><head> <meta charset='utf-8' /> <title>Explaining the Document Object Model</title></head><body> <h1>What is Document Object Model?</h1> <p>The <abbr>W3C</abbr> defines the <abbr>DOM</abbr>as: </p> <blockquote cite='http://www.w3.org/DOM/'><p> A plateform- and langage-neutral interface that will allow programs and scripts to dynamically access the update the content, structure and style of documents.</p> </blockquote> <p>It is an <abbr>API</abbr> that can be used to navigate <abbr>HTML</abbr>and <abbr>XML</abbr> documents. </p></body></html>

謝謝

問題解答

回答1:

何止html標(biāo)簽的顯示不一樣,連同一字體同一字號(hào)在各個(gè)瀏覽器里面的默認(rèn)高度和顯示都是會(huì)有差異的

標(biāo)簽: HTML
相關(guān)文章: