兼容ie 7/8/9/10 ajax兼容360兼容模式

来源:互联网 发布:警惕网络陷阱 编辑:程序博客网 时间:2024/05/19 01:07

参考链接

http://www.frontopen.com/2552.html


  • “-″减号是IE6专有的hack
  • “\9″ IE6/IE7/IE8/IE9/IE10都生效
  • “\0″ IE8/IE9/IE10都生效,是IE8/9/10的hack
  • “\9\0″ 只对IE9/IE10生效,是IE9/10的hack

参考链接

http://www.jb51.net/css/67630.html

//单独兼容ie10

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { 

}

<script> 
if (/*@cc_on!@*/false) { 
document.documentElement.className+=' ie10'; 

</script>


 ajax兼容360兼容模式

<meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE=7;IE=EDGE">

<meta name="renderer" content="webkit|ie-comp|ie-stand" />二者都可以

0 0
原创粉丝点击