首页 > 其他 > 详细

ie hack 兼容完美解决方案(前端网备份)

时间:2019-06-10 14:43:16      阅读:124      评论:0      收藏:0      [点我收藏+]

hack 速查表
思路:

@media screen and (min-width:0\0) and (min-resolution: +72dpi) {
    /*IE9+ CSS*/
    .carController {
        width: 500px;
    }
    .el-switch {
        width: 300px !important;
    }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .carController {
        width: auto !important
    }
}

比如上面是之前人写的ie向上兼容方案,结果ie11出了问题不兼容,然后下面一条写的是ie10向上兼容方案,完美解决

ie hack 兼容完美解决方案(前端网备份)

原文:https://www.cnblogs.com/lsc-boke/p/10996964.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!