美文网首页
兼容IE10,IE11

兼容IE10,IE11

作者: sunshineboy00 | 来源:发表于2018-02-05 20:17 被阅读0次

CSS 条件 hack的形式

这种方式应用中会存在一定的局限性,无法达到预期效果
<!--[if gte IE 10]
<style>
</style>
<![endif]-->

media 的形式【即媒体查询的方式】

 /* ie11 */
@media all and (-ms-high-contrast:none){

}
/* ie10 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { 

}

相关文章

网友评论

      本文标题:兼容IE10,IE11

      本文链接:https://www.haomeiwen.com/subject/zziizxtx.html