开发者

Style attribute of HTML fieldSet Tag is Not Working

My HTML is look like these

<html>
<body>
<fieldSet id="sourceName" style="width: 350px; height: 80px; overflow: auto;">
Some Data.....
</fieldSet>
</body>
</html> 

The above code is working fine in IE and Opera but when i run the same code in mozilla Firefox the style attribute of fieldSet i开发者_如何学Cs not working on mozilla what should i use. my simple Qustion is how to give scrollbar to fieldSet in mozilla.


FF doesn't seem to handle fieldset overflow in a standard way. As a workaround, use a nested div:

<fieldSet id="sourceName" style="width: 350px; height: 80px;">
    <div style="width: 350px; height: 80px; overflow: auto;">
        Some Data.....
    </div>
</fieldSet>


You can try overflow: scroll, that should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜