Setting Div Height in IE6

Calchas 发表于 2008, December 5, 9:59 AM

>> The following div displays correctly in Firefox but IE6 seems
>> not to respect the height of 5px. If I set this very large,
>> like 100px, IE displays it ok, but at a small height, like
>> 5px, it just stops shrinking.
 
If you set font-size and line-height for that div so that they fit within the 5px, IE will probably display it as desired.

Another option is overflow:hidden. Much Thanks, Els. overflow:hidden did the trick.

« 上一篇 | 下一篇 »

标签: html, css
相关文章: (最多只显示5条记)
引用: 点击获得Trackback地址,Encode: UTF-8 点击获得Trackback地址,Encode: GB2312 or GBK 点击获得Trackback地址,Encode: BIG5
发表评论:( 你的参与是我最大的动力! )