chrome,firefox,IE,360,等
1.@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {}
以此来识别IE10+以上的浏览器.但是注意,在该属性内的class,只会对没在该属性内的class的属性进行替代.如果比如:
.oper-wrap {
position: absolute;
width: 100%;
display: grid;
display: -ms-grid;
grid-template-columns: 33% 33% 33%;
background-color: #1890ff;
bottom: 0;
opacity: 0;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.oper-wrap {
position: absolute;
width: 100%;
background-color: #1890ff;
bottom: 0;
opacity: 0;
display: block; // 假设没有写该属性,则会默认是display:-ms-grid;ie 11能认识该属性,但却不能正确表现,so ...悲剧
}
}
- ant.design支持ie9(需要polyfills)以上.所以可以放心在9以上版本使用.在某些不兼容的地方自行修补;
1). table 在ie11中的表现会被内容撑开,使得长度超出屏幕;
<table style="table-layout:fixed"></table> - flex与grid

本文记录了在处理浏览器兼容性问题时遇到的挑战,特别是针对IE10及更高版本。在IE11中,表格可能会被内容撑开,而`@media all and (-ms-high-contrast: none), (-ms-high-contrast: active)`用于识别IE10+。IE11对flex和grid的支持有限,需要额外的兼容性处理。360浏览器有两种模式,其中Trident模式对一些特性支持不足,如linear-gradient和animation。对于React应用,需要注意它本身不支持IE8。"
115893490,10000276,Unity3D角色控制:旋转与移动实现,"['Unity3D', '游戏开发', 'C#编程', '3D模型控制', '游戏引擎']
最低0.47元/天 解锁文章
954

被折叠的 条评论
为什么被折叠?



