简体   繁体   English

HTML fieldSet标记的样式属性不起作用

[英]Style attribute of HTML fieldSet Tag is Not Working

My HTML is look like these 我的HTML看起来像这样

<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 is not working on mozilla what should i use. 上面的代码在IE和Opera中工作正常,但是当我在mozilla Firefox中运行相同的代码时,fieldSet的style属性在mozilla上不起作用,我应该使用什么。 my simple Qustion is how to give scrollbar to fieldSet in mozilla. 我简单的问题是如何在mozilla中将滚动条赋予fieldSet。

FF doesn't seem to handle fieldset overflow in a standard way. FF似乎无法以标准方式处理字段集溢出。 As a workaround, use a nested div: 解决方法是使用嵌套的div:

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

您可以尝试overflow: scroll ,这应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM