我需要有 Mozilla Firefox 特定的 overflow: hidden 属性,这样它应该只适用于 Firefox。
下面是问题演示的示例代码;
<div class="container">
<div class="hidmeinfirefox">I should be hidden in firefox</div>
</div>
.container {
}
.container .hidmeinfirefox {
height: 1px;
width: 1px;
-moz-overflow: hidden;
}
最佳答案
使用此代码
<style type="text/css">
@-moz-document url-prefix() {
.hidmeinfirefox {
overflow: hidden;
}
}
</style>
关于html - -moz-溢出 : hidden not working in firefox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29940978/