亚洲国产日韩欧美一区二区三区,精品亚洲国产成人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 <tbody>元素組的一種或多種<tr>元素作為<table>元素的主體元件。

內(nèi)容類(lèi)別

None。

允許的內(nèi)容

零個(gè)或多個(gè)<tr>元素。

標(biāo)簽省略

<tbody>元素不是用于以圖形方式呈現(xiàn)的父<table>元素的必需子元素。但是,如果其父<table>元素具有<tr>元素作為子元素,則它不能存在。

允許的父級(jí)

在所需的父<table>元素中,<tbody>元素可以添加在<caption>,<colgroup>,<thead>和<tfoot>元素之后。

允許的 ARIA 角色

任何

DOM 接口

HTMLTableSectionElement

屬性

該元素包含全局屬性。

align  在 HTML 4.01 中,在 HTML5 中此枚舉屬性指定如何處理每個(gè)單元格內(nèi)容的水平對(duì)齊??赡艿闹凳牵?/p>

  • left,將內(nèi)容對(duì)齊到單元格的左側(cè)

  • center,將內(nèi)容集中在單元格中

  • right,將內(nèi)容對(duì)齊到單元格的右側(cè)

  • justify,在文本內(nèi)容中插入空格以便內(nèi)容在單元格中合理

  • char,將特殊字符上的文本內(nèi)容與由charcharoff屬性定義的最小偏移量對(duì)齊。

如果未設(shè)置此屬性,left則假定該值。

注意:不要使用此屬性,因?yàn)樗谧钚聵?biāo)準(zhǔn)中已過(guò)時(shí)(不支持)。

  • 為了實(shí)現(xiàn)作為同樣的效果left,centerrightjustify值,使用 CSS text-align就可以了財(cái)產(chǎn)。

  • 為了達(dá)到與char CSS3 中的值相同的效果,可以使用值的值char作為text-align未實(shí)現(xiàn)屬性的值。

bgcolor該屬性定義了列的每個(gè)單元格的背景顏色。它是 sRGB 中定義的6位十六進(jìn)制代碼之一,以'#'為前綴??梢允褂檬鶄€(gè)預(yù)定義顏色字符串中的一個(gè):


black = "#000000"


green = "#008000"


silver = "#C0C0C0"


lime = "#00FF00"


gray = "#808080"


olive = "#808000"


white = "#FFFFFF"


yellow = "#FFFF00"


maroon = "#800000"


navy = "#000080"


red = "#FF0000"


blue = "#0000FF"


purple = "#800080"


teal = "#008080"


fuchsia = "#FF00FF"


aqua = "#00FFFF"

使用說(shuō)明:不要使用此屬性,因?yàn)樗欠菢?biāo)準(zhǔn)的,只實(shí)現(xiàn)了某些版本的 Microsoft Internet Explorer:該<tbody>元素應(yīng)使用 CSS 進(jìn)行樣式化。為了給 bgcolor 屬性提供類(lèi)似的效果,請(qǐng)?jiān)谙嚓P(guān)<td><th>元素上使用 CSS 屬性background-color。

char  在 HTML 4.01 中,在 HTML5 中此屬性用于設(shè)置字符以對(duì)齊列上的單元格。典型值包括嘗試對(duì)齊數(shù)字或貨幣值時(shí)的句點(diǎn)(。)。如果align未設(shè)置char,則忽略此屬性。

注意:不要使用此屬性,因?yàn)樗谧钚聵?biāo)準(zhǔn)中已過(guò)時(shí)(并且不受支持)。為了達(dá)到與char CSS3 中相同的效果,可以使用字符集char作為text-align屬性 Unimplemented 的值。

charoff  在 HTML 4.01 中,在 HTML5 中此屬性用于指示用來(lái)從 char 屬性指定的對(duì)齊字符中偏移列數(shù)據(jù)的字符數(shù)

注意:不要使用此屬性,因?yàn)樗谧钚聵?biāo)準(zhǔn)中已過(guò)時(shí)(并且不受支持)。

valign  在 HTML 4.01 中,在 HTML5 中此屬性指定表格標(biāo)題的每行單元格內(nèi)文本的垂直對(duì)齊方式。此屬性的可能值為:

  • baseline,它會(huì)將文本盡可能靠近單元格的底部,但將其對(duì)齊到字符的基線而不是底部。如果字符的大小都是一樣的話,這和效果相同bottom。

  • bottom,這將使文本盡可能靠近單元格的底部;

  • middle,它將文本居中在單元格中;

  • 并且top,這將使文本盡可能靠近單元格的頂部。

注意:不要使用此屬性,因?yàn)樗谧钚聵?biāo)準(zhǔn)中已經(jīng)過(guò)時(shí)(并且不受支持):請(qǐng)改為vertical-align在其上設(shè)置 CSS 屬性。

使用說(shuō)明

  • 結(jié)合前面的<thead>和/或<tfoot>元素,該<tbody>元素為打印機(jī)和顯示器等設(shè)備提供額外的語(yǔ)義信息。

  • 在父表的子元素中,<tbody>表示頁(yè)面長(zhǎng)度超過(guò)一頁(yè)時(shí)最有可能對(duì)打印的每個(gè)頁(yè)面不同的內(nèi)容; 而每頁(yè)打印的內(nèi)容<thead><tfoot>相同或相似。

  • 用于顯示器,<tbody>將使分離的滾動(dòng)<thead>,<tfoot><caption>相同的父元素<table>的元素。

  • 不同于<thead>,<tfoot><caption>元件,多個(gè)<tbody>元件被允許(如果連續(xù)的),允許在長(zhǎng)表中的行被分成不同的部分,根據(jù)需要各自分開(kāi)格式化。

例子

請(qǐng)參閱<table>頁(yè)面上的示例<tbody>

規(guī)范

Specification

Status

Comment

HTML Living StandardThe definition of 'tbody element' in that specification.

Living Standard


HTML5The definition of 'tbody element' in that specification.

Recommendation


瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

1

(Yes)

1

(Yes)

(Yes)

(Yes)

align

?

(Yes)

No1

(Yes)

?

?

bgcolor

?

No

No

(Yes)

?

?

char

?

(Yes)

No2

(Yes)

?

?

charoff

?

(Yes)

No2

(Yes)

?

?

valign

?

(Yes)

No1

(Yes)

?

?

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

1

(Yes)

(Yes)

(Yes)

align

?

?

(Yes)

No1

(Yes)

?

?

bgcolor

?

?

No

No

(Yes)

?

?

char

?

?

(Yes)

No2

(Yes)

?

?

charoff

?

?

(Yes)

No2

(Yes)

?

?

valign

?

?

(Yes)

No1

(Yes)

?

?

Previous article: Next article: