CSS显示:表最小高度不工作 [英] CSS display: table min-height not working
本文介绍了CSS显示:表最小高度不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道我可以使最小的高度工作与最新的浏览器?我使用CSS表,似乎忽略最小高度。
Does anyone know I can make min-height work with the latest browsers? I am using CSS tables and it seems to ignore min-height.
<div style="background-color: red; display: table; min-height: 100px;">
abc
</div>
推荐答案
当使用表时,height基本上是min-height,只要摆脱min-,它会按照你的期望工作。
When using tables, height essentially is min-height, as tables always stretch. Just get rid of the "min-" and it will work as you expect.
这篇关于CSS显示:表最小高度不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文