亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
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
characters

已廢棄

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

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

使用說(shuō)明:

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

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

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

屬性

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

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

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

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

DOM接口

該元素實(shí)現(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屬性。

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

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

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

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

Previous article: Next article: