目标safari css,但不是chrome [英] Target safari css, but not chrome
本文介绍了目标safari css,但不是chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
进入一个问题,其中chrome和safari显示margin不同。但是他们都是webkit,所以不能真正使用前缀。是否有任何解决方案或黑客可以帮助它?
Ran into a problem, where chrome and safari display margin differently. But both of them are webkit, so can't really use a prefix. Is there any solution, or hack that could help with it?
推荐答案
找到别的地方。对我很好。
Found somewhere else here. worked fine for me
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari and Chrome */
.myClass {
color:red;
}
/* Safari only override */
::i-block-chrome,.myClass {
color:blue;
}
}
这篇关于目标safari css,但不是chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文