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

目錄 搜索
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
文字

已廢棄

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

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

注意:

不要使用這個(gè)元素!盡管它在 HTML 3.2 規(guī)范化,但在 HTML 4.01 中已廢除,因?yàn)樵撛缓蜆邮较嚓P(guān),接著在 HTML5 過時(shí)。

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

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

屬性

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

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

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

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

DOM 接口

這個(gè)元素實(shí)現(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)

上一篇: 下一篇: