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屋!
查看全文