fieldset firefox溢出CSS修复 [英] fieldset firefox overflow CSS fix
本文介绍了fieldset firefox溢出CSS修复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置内容在字段集中溢出?
它可以在IE中使用,但不能在FF中使用。
How can i set content to overflow in fieldset? It works in IE but not in FF.
在两个浏览器中,使用div元素可以实现相同的功能。
Same functionality I can achieve with div element in both browsers.
示例:
<fieldset style="border:thin solid #990033;">
<legend>test</legend>
<div style="background-color:#0033FF; height: 30px; width:800px;" >FIXED DIV</div>
</fieldset>
<p> </p>
<div style="border:1px solid #999999; padding:0 8px 8px 8px;">
<label style="background-color:#FFFFFF; padding:0 5px; position:relative; top:-10px;" >test</label>
<div style="background-color:#0033FF; height: 30px; width:800px;" >FIXED DIV</div>
</div>
推荐答案
找到解决方案,添加条件css样式:
Found solution, add conditional css style:
fieldset {
display: table-column;
}
<!–[if IE]>
fieldset {
display: block;
}
<![endif]–>
这篇关于fieldset firefox溢出CSS修复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文