如何使内容适合DIV [英] How to make content fit in DIV
本文介绍了如何使内容适合DIV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
展开 | 选择 | Wrap | 行号
推荐答案
不要设置
最大高度:240px;
max-height: 240px;
,那么如果你的文件大于那个高度长度,它会溢出< div> ,最好设置
, then if your document bigger then that height length it would overflow the <div> , better to set
min-height:240px;
min-height: 240px;
然后它将最小化高度和最大值无论它来什么
then it would take minimum that height and max whatever it comes
这似乎不起作用。
还有其他任何想法吗?
That does not seem to work.
Any other ideas?
这应该有效,但是最小高度在IE6中不起作用。
That should work but min-height does not work in IE6.
这篇关于如何使内容适合DIV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文