如何使用CSS定位Microsoft Edge? [英] How to target Microsoft Edge with CSS?
本文介绍了如何使用CSS定位Microsoft Edge?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想定位Edge,并使flexbox的行为与Firefox 33 / Chrome相似,
I would like to target Edge and have flexbox behave simliar to Firefox 33 / Chrome, for more detail see this question.
可以在CSS中定位Edge吗?
Can one target Edge in CSS?
推荐答案
要定位Edge,我们可以使用 -ms-accelerator
Edge浏览器是唯一支持硬件加速的Microsoft浏览器:
To target Edge, we can make use of -ms-accelerator
, as Edge browser is the only Microsoft browser that supports hardware acceleration:
@supports (-ms-accelerator:true) {
.selector {
color: red;
}
}
或:
_:-ms-lang(x), _:-webkit-full-screen, .selector { color: red; }
Further explanation can be found here
这篇关于如何使用CSS定位Microsoft Edge?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文