我有以下选择器代码:
#ajax_hits_counter_popular_posts_widget-2.widget li img {
// Give the thumbs in the widget some style
border-radius: 5px;
margin-right: 10px;
border: 4px solid #353434 !important;
}
除了 border: 4px solid #353434 !important;
在Firebug或Chrome开发工具中查看时,border:属性甚至根本不显示,而其他属性则显示。
如果我在Firebug或Chrome工具中手动键入完全相同的代码,则可以正常运行。
现场直播(这是右下角的“热门帖子”缩略图小部件):同时,在美国
有人知道为什么吗?
// Give the thumbs in the widget some style
在CSS中无效。浏览器似乎忽视了以下属性,你可以在看到这个例子。如果删除“注释”,它将按预期工作。(在您的页面上,border
声明直接跟在“注释”之后,与此处发布的CSS不同)
CSS中的注释必须放在中/* ... */
。
正如tim.baker所提到的,您必须使用border
代替border-style
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句