2016-11-06 11:04:11 CSS media screen and兼容IE8及以下浏览器
CSS media screen and兼容IE8及以下浏览器
<!--[if lte IE 8]> <script> !function(j,i){var k,p=function(e,d,f){e.attachEvent?(e["e"+d+f]=f,e[d+f]=function() {e["e"+d+f](window.event)},e.attachEvent("on"+d,e[d+f])):e.addEventListener(d,f,!1)}, o=function(r,q){var t,s,x=/\s+/,w=(q||"").split(x),v=" "+r.className+" ",u=r.className;for(t=0,s=w.length;s>t;t++) {v.indexOf(" "+w[t]+" ")<0&&(u+=" "+w[t])}r.className=u.replace(/^\s+|\s+$/g,"")}, n=function(r,q){var t,s,x=/\s+/,w=/[\n\t]/g,v=(q||"").split(x),u=(" "+r.className+" ").replace(w," "); for(t=0,s=v.length;s>t;t++){u=u.replace(" "+v[t]+" "," ")}r.className=u.replace(/^\s+|\s+$/g,"")}, m=i.body,l=function() {var a;a=j.innerWidth?j.innerWidth:0!==i.documentElement.clientWidth?i.documentElement.clientWidth:i.body.clientWidth, a>1200?(n(m,"page-screen980"),o(m,"page-screen1200")):(n(m,"page-screen1200"), o(m,"page-screen980"))}; p(window,"resize",function(){clearTimeout(k), k=setTimeout(function(){l()},100)}),l()}(window,document);; </script> <![endif]-->