<display-internal>

 

一些布局模型,例如  table 并且ruby具有复杂的内部结构,具有他们的孩子和后代可以填充的几个不同的角色。此页面定义了那些“内部”显示值,这些值仅在该特定布局模式中具有意义。

语法

除非另有说明,否则使用这些显示值的元素的内部显示类型和外部显示类型都将设置为给定的关键字。

table-row-group
这些元素的行为类似于<tbody>HTML元素。
table-header-group
这些元素的行为类似于<thead>HTML元素。
table-footer-group
这些元素的行为类似于<tfoot>HTML元素。
table-row
这些元素的行为类似于<tr>HTML元素。
table-cell
这些元素的行为类似于<td>HTML元素。
table-column-group
这些元素的行为类似于<colgroup>HTML元素。
table-column
这些元素的行为类似于<col>HTML元素。
table-caption
这些元素的行为类似于<caption>HTML元素。
ruby-base 
这些元素的行为类似于<rb>HTML元素。
ruby-text 
这些元素的行为类似于<rt>HTML元素。
ruby-base-container 
这些元素的行为类似于<rbc>匿名框生成的HTML元素。
ruby-text-container 
这些元素的行为类似于<rtc>HTML元素。

浏览器兼容性编辑

支持表值

table, table-cell, table-column, table-column-group, table-footer-group, table-header-group, table-row, and table-row-group

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
table, table-cell, table-column, table-column-group, table-footer-group, table-header-group, table-row, and table-row-groupChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 8Opera Full support 7Safari Full support 1WebView Android Full support ≤37Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support YesSafari iOS Full support 1Samsung Internet Android Full support Yes

Legend

Full support  
Full support

支持ruby值

ruby, ruby-base, ruby-base-container, ruby-text, and ruby-text-container

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
ruby, ruby-base, ruby-base-container, ruby-text, and ruby-text-container
Experimental
Chrome No support NoEdge Full support 12Firefox Full support 38
Full support 38
No support 34 — 38
Disabled
Disabled From version 34 until version 38 (exclusive): this feature is behind the layout.css.ruby.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE Full support 7Opera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android Full support 38
Full support 38
No support 34 — 38
Disabled
Disabled From version 34 until version 38 (exclusive): this feature is behind the layout.css.ruby.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
User must explicitly enable this feature.
User must explicitly enable this feature.

另请参见