亚洲国产日韩欧美一区二区三区,精品亚洲国产成人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

已廢棄

該特性已經(jīng)從 Web 標(biāo)準(zhǔn)中刪除,雖然一些瀏覽器目前仍然支持它,但也許會在未來的某個時間停止支持,請盡量不要使用該特性。

HTML Font 元素<font>)定義了該內(nèi)容的字體大小、顏色與表現(xiàn)。

注意:

不要使用這個元素!盡管它在 HTML 3.2 規(guī)范化,但在 HTML 4.01 中已廢除,因為該元件只和樣式相關(guān),接著在 HTML5 過時。

從 HTML 4 開始,HTML 不能在<style>元素,或各元素style屬性以外,表現(xiàn)任何樣式信息。今后的網(wǎng)頁開發(fā),樣式只能使用CSS來編寫。

<font>元素的行為,可以通過CSS屬性實現(xiàn),以及更好控制。

屬性

如同其他 HTML 元素,這個元素支持全局屬性。

color這個屬性使用顏色名稱或是十六進制的 #RRGGBB 格式,來設(shè)置文字的顏色。

face這個屬性列出了一個或多個逗號分隔的字體名稱。 默認(rèn)樣式中的文檔文字,會使用客戶端瀏覽器所支持的,第一個字體風(fēng)格來渲染。如果本地系統(tǒng)中并沒有安裝列出的字體,瀏覽器會使用系統(tǒng)預(yù)設(shè)的均衡(proportional)或等寬(fixed-width)字體。

size這個屬性使用數(shù)字或相對值指定文字大小。數(shù)字在最小的7到最大的7之間,默認(rèn)值為3。也可以用諸如+2或-3的相對值指定,這會將其設(shè)置為,相對于<basefont>元素size屬性的值,或者如果不存在,則是相對于3也就是默認(rèn)值的值。

DOM 接口

這個元素實現(xiàn)了HTMLFontElement接口。

瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

color

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

face

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

size

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

color

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

face

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

size

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Previous article: Next article: