【发布时间】:2013-07-28 05:55:41
【问题描述】:
我有一个段落在 chrome 和 firefox 中显示不同。在 chrome 中,我看到样式是由用户代理应用的。
p {
display: block;
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
}
我尝试覆盖这些样式,但对渲染仍然没有影响。有没有办法可以否定差异。以便它们在两个浏览器中以相同的方式呈现。
http://jsfiddle.net/hozefa/hM4Rx/
chrome 中的计算标记
color: rgb(102, 102, 102);
display: block;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
height: 95px;
line-height: 19px;
margin-bottom: 13px;
margin-left: 0px;
margin-right: 0px;
margin-top: 3px;
text-shadow: rgb(255, 255, 255) 0px 1px 0px;
width: 526px
FF 中的计算标记
font-family Arial,Helvetica,sans-serif
font-size 14px
color #666666
line-height 19px
margin-top 3px
margin-right 0px
margin-bottom 13px
margin-left 0px
text-shadow #FFFFFF 0px 1px 0px
【问题讨论】:
标签: css google-chrome firefox