这是我的 CSS 代码:
.thzPartsHeader, .thzPartsContainer {
border:1px solid #0080ff;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow:0 0 6px #0080ff, 0 0 20px #292929 inset;
-moz-box-shadow:0 0 6px #0080ff, 0 0 20px #292929 inset;
box-shadow:0 0 6px #0080ff, 0 0 20px #292929 inset;
padding: 5px 20px 5px 20px;
margin:auto;
font-family:georgia;
font-size: 12px;
color:#ffffff;
background-color:#000000;
}
这是 HTML 代码:
<fieldset class="thzPartsContainer">
<legend class="thzPartsHeader"><b>Code Will Appear Below</b></legend>
<textarea class="textArea" id="txtarea" name="codearea"></textarea>
</fieldset>
这就是它在 Google Chrome 中的显示方式(这正是我想要的):
但这就是它在 Firefox 中的显示方式(没有发布图片的声誉:o):(
来源:googledrive.com)
看起来好像阴影被移位并且margin:auto
属性在Firefox中不起作用。他们俩的解决方法是什么?请帮忙。