Chrome条件注释 [英] Chrome conditional comments
本文介绍了Chrome条件注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有像Chrome这样的条件注释?
Is there such a thing as conditional comments for Chrome?
与Firefox相比,Chrome中的网页渲染效果不同。
I have a page that renders differently in Chrome when compared to Firefox.
感谢
推荐答案
您可以在CSS中使用此功能来定位基于WebKit的浏览器
You can target WebKit based browsers using this in your CSS
@media screen and (-webkit-min-device-pixel-ratio:0) {
Body {}
}
也许这会有帮助吗?
这篇关于Chrome条件注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文