gpt4 book ai didi

html - 显示 : table-cell; outside the table

转载 作者:行者123 更新时间:2023-11-28 00:20:46 27 4
gpt4 key购买 nike

在表格或带有 display: table 的 div 之外使用 display: table-cell; 是否正确?例如,像这样:http://jsfiddle.net/Lnpax/

最佳答案

Is it correct to use display: table-cell; outside a table or a div with display: table?

你可以做到这一点。

任何必需但缺少的元素都将自动生成为“匿名”表格元素。

http://www.w3.org/TR/CSS2/tables.html#anonymous-boxes

Any table element will automatically generate necessary anonymous table objects around itself, consisting of at least three nested objects corresponding to a 'table'/'inline-table' element, a 'table-row' element, and a 'table-cell' element. Missing elements generate anonymous objects (e.g., anonymous boxes in visual table layout) according to the [rules described in the link above].

关于html - 显示 : table-cell; outside the table,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9046416/

27 4 0