gpt4 book ai didi

html - 为什么最大高度不能在 table 上工作?

转载 作者:搜寻专家 更新时间:2023-10-31 22:32:29 26 4
gpt4 key购买 nike

有人可以向我解释为什么 ma​​x-height 在表格元素上不起作用吗?

这是 code

最佳答案

In CSS 2.1, the effect of 'min-height' and 'max-height' on tables, inline tables, table cells, table rows, and row groups is undefined.

阅读spec .

如果要强制使用 max-height,请将表格设置为 display: block

关于html - 为什么最大高度不能在 table 上工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12962487/

26 4 0