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

HTML 主體元素(<body>) 表示的是HTML文檔的主體內(nèi)容,任何一個HTML文檔,只允許存在一個 <body> 元素。

內(nèi)容類別

切根。

允許的內(nèi)容

流量內(nèi)容。

標(biāo)記遺漏

如果其中的第一個東西不是空格字符,注釋,<script>元素或<style>元素,則可以省略開始標(biāo)記。如果主體元素包含內(nèi)容或者具有開始標(biāo)簽,則結(jié)束標(biāo)簽可以被省略,并且不會立即跟隨注釋。

允許父母

它必須是<html>元素的第二個元素。

允許ARIA角色

沒有

DOM界面

HTMLBodyElement <body>元素公開HTMLBodyElement接口。您可以通過document.body屬性訪問body元素。

  • <body>元素暴露在HTMLBodyElement 接口中。

  • 你可以通過 document.body 屬性來訪問body元素。

屬性

該元素包含所有全局特性。

alink超鏈接被選中時的顏色。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSS :active偽類的color屬性代替。

background將用URI地址指定的圖片設(shè)置為背景。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSSbackground屬性代替。

bgcolor文檔的背景顏色。這個方法不符合標(biāo)準(zhǔn),請用CSSbackground-color屬性代替。

bottommarginbody元素底部的空白。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSSmargin-bottom屬性代替。

leftmarginbody元素左邊的空白。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSSmargin-left屬性代替。

link未訪問過的超鏈接的顏色。這個方法不符合標(biāo)準(zhǔn),請用 CSS :link偽類的 color屬性代替。

onafterprintHTML5用戶打印完成當(dāng)前文檔后的回調(diào)函數(shù)。

onbeforeprintHTML5用戶請求打印當(dāng)前文檔時(打印前)的回調(diào)函數(shù)。

onbeforeunloadHTML5當(dāng)文檔即將被卸載的回調(diào)函數(shù)。

onblurHTML5DOM失去焦點(diǎn)的回調(diào)函數(shù)。

onerrorHTML5DOM加載失敗的回調(diào)函數(shù)。

onfocusHTML5DOM接收到焦點(diǎn)focus的回調(diào)函數(shù)。

onhashchangeHTML5當(dāng)文檔當(dāng)前地址的片段標(biāo)識部分(地址后面以#號開始的部分)變化時的回調(diào)函數(shù)。

onlanguagechange語言改變時的回調(diào)函數(shù)。

onloadHTML5DOM完成加載的回調(diào)函數(shù)。

onmessageHTML5DOM接收到message的回調(diào)函數(shù)。

onofflineHTML5網(wǎng)絡(luò)連接失敗的回調(diào)函數(shù)。

ononlineHTML5網(wǎng)絡(luò)恢復(fù)連接的回調(diào)函數(shù)。

onpopstateHTML5用戶導(dǎo)航歷史會話的回調(diào)函數(shù)。

onredoHTML5用戶從歷史記錄里面前進(jìn)的onresizeHTML5DOM大小調(diào)整時觸發(fā)的回調(diào)函數(shù)。

onstorageHTML5存儲區(qū)改變的回調(diào)函數(shù)。

onundoHTML5用戶從歷史記錄里前進(jìn)時觸發(fā)的回調(diào)函數(shù)。

onunloadHTML5當(dāng)文檔已經(jīng)被關(guān)閉的回調(diào)函數(shù)。

rightmarginbody元素右邊的空白。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSSmargin-right屬性代替。

text文本的顏色。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSS color屬性代替。

topmarginbody元素頂部的空白。這個方法不符合標(biāo)準(zhǔn),請用元素的 CSSmargin-top屬性代替。

vlink已訪問的超鏈接的顏色。這個方法不符合標(biāo)準(zhǔn),請用 CSS :visited偽類的 color屬性代替。

示例

<html>  <head>    <title>Document title</title>  </head>  <body>    <p>This is a paragraph</p>  </body></html>

規(guī)范

規(guī)范

狀態(tài)

評論

WHATWG HTML生活標(biāo)準(zhǔn)該規(guī)范中“<body>”的定義。

生活水平

更改了不符合要素的列表。

HTML5該規(guī)范中'<body>'的定義。

建議

過時了以前被棄用的屬性。定義了不符合標(biāo)準(zhǔn)的邊際,邊際,邊緣和邊際的行為。添加了on *屬性。

HTML 4.01規(guī)范該規(guī)范中'<body>'的定義。

建議

棄用alink,背景,bgcolor,鏈接,文本和vlink屬性。

瀏覽器兼容性

Feature

Chrome

Edge

Firefox (Gecko)

Internet Explorer

Opera

Safari (WebKit)

Basic support

1.0

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

onlanguagechange

?

No support

32 (32)

?

?

?

bottommargin, leftmargin, rightmargin, topmargin

(Yes)

No support

35 (35) 1

?

?

?

Feature

Android

Edge

Firefox Mobile (Gecko)

IE Phone

Opera Mobile

Safari Mobile

Basic support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

onlanguagechange

?

No support

32.0 (32)

?

?

?

bottommargin, leftmargin, rightmargin, topmargin

(Yes)

No support

35.0 (35) 1

?

?

?

Previous article: Next article: