我带指南针框架内工作,并将其重置了很多默认的CSS样式:浏览器不重写CSS属性
..., h1, .. { // line number 18
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
下面我定义我的风格为h1
:
h1 { // line number 77
font-weight: bold;
color: #333;
padding: 15px, 5px, !important;
}
但Chrome浏览器不接受填充属性并保持为0.所有其他属性均为正常。
为什么浏览器不接受较低的css属性?谢谢
http://stackoverflow.com/questions/3242870/why-isnt-my-important-attribute-working-in-google-chrome – JMichelB
你真的需要'!important'填充? – MikeM
不,我只是想强制浏览器使用我的风格 – megas