gpt4 book ai didi

css - 显示 :table - override height and overflow?

转载 作者:太空宇宙 更新时间:2023-11-04 16:07:24 25 4
gpt4 key购买 nike

我有一个 div,我试图将其设置为从 0pxnpx 的动画。

问题是它被设置为 display:table 这似乎迫使它忽略高度和溢出样式。这可能是它应该如何工作的,但是有没有办法使表格的高度为 0px

最佳答案

如果 div 有一些内容和 'display: table' 属性 - 它无论如何都不会变得比内容更小。

关于css - 显示 :table - override height and overflow?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8882761/

25 4 0