国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

目錄 搜索
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
文字

已廢棄

此功能已過時。雖然它可能在某些瀏覽器中仍然有效,但由于可以在任何時候刪除它,所以不鼓勵使用它。盡量避免使用.

HTML標(biāo)簽<basefont>用來設(shè)置文檔的默認字體大小。使用<font>可以相對于默認字體大小進行變化。

使用說明:

不要再使用這個標(biāo)簽! 盡管在HTML 3.2中曾經(jīng)(不嚴格地)標(biāo)準(zhǔn)化,但是它并不被主流的瀏覽器所支持。而且,不同的瀏覽器、甚至同一瀏覽器的相鄰版本,都沒有使用相同的實現(xiàn)方式; 實際上,使用這個標(biāo)簽總是導(dǎo)致不確定的結(jié)果。

<basefont>元素,同其他只與樣式相關(guān)的元素一起,在標(biāo)準(zhǔn)中不被建議使用。從HTML 4起,HTML不再傳遞樣式信息(除<style>元素和所有元素的style屬性內(nèi)容外)。在HTML5,這個元素已經(jīng)被徹底移除。對于所有新的網(wǎng)頁開發(fā),樣式只應(yīng)該寫在CSS中。

使用CSS Fonts屬性,同樣能夠?qū)崿F(xiàn)<font>的效果,甚至更好控制。

屬性

如同其他HTML元素一樣,它支持全局屬性.

color該屬性使用顏色名稱或者形如#RRGGBB的十六進制格式設(shè)置字體的顏色。

face該屬性包含一個或多個字體名稱。文檔文字默認按照第一個瀏覽器支持的字體進行渲染。如果所有列出的字體本地系統(tǒng)都未安裝,瀏覽器默認使用該系統(tǒng)上的定比或者定寬字體。

size該屬性定義了字體大小的,使用數(shù)值或者相對值。數(shù)值值域為1~7,1最小,默認值為3。

DOM接口

該元素實現(xiàn)了HTMLBaseFontElement接口.

示例

<basefont color="#FF0000" face="Helvetica" size="+2" />

瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

No

(Yes)

No

(Yes)

No

No

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

No

No

(Yes)

No

(Yes)

No

No

Notes

  • HTML 3.2支持basefont元素,但只支持size屬性。

  • 嚴格的HTML和XHTML規(guī)范不支持這個元素。

  • 盡管是過渡標(biāo)準(zhǔn)的一部分,但一些標(biāo)準(zhǔn)化的瀏覽器(如Mozilla和Opera)不支持這一元素。

  • 這個元素可以用元素上的CSS規(guī)則來模仿<body>

  • XHTML 1.0需要這個元素的尾部斜線:<basefont />。

上一篇: 下一篇: