i8 不支持jq2.0以上的版本
可以支持2.0以下的版本
( 可以支持<script type="text/javascript" src="js/jquery-1.11.0.js" ></script>)
ie8 css hack
http://www.cnblogs.com/top5/archive/2009/11/24/1609784.html
判断浏览器并对ie8版本进行升级提示
<script>
var DEFAULT_VERSION = "8.0";
var ua = navigator.userAgent.toLowerCase();
var isIE = ua.indexOf("msie")>-1;
var safariVersion;
if(isIE){
safariVersion = ua.match(/msie ([\d.]+)/)[1];
}
if(safariVersion <= DEFAULT_VERSION ){
alert("Your browser version is too low, please upgrade your browser");
}
</script>
<![endif]-->
将以下代码加载<head></head>标签内
<!--[if IE 8]>
<script>
var DEFAULT_VERSION = "8.0";
var ua = navigator.userAgent.toLowerCase();
var isIE = ua.indexOf("msie")>-1;
var safariVersion;
if(isIE){
safariVersion = ua.match(/msie ([\d.]+)/)[1];
}
if(safariVersion <= DEFAULT_VERSION ){
alert("Your browser version is too low, please upgrade your browser");
}
</script>
<![endif]-->
i8支持html5 页面中需加入以下代码
css代码
<style>
article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block;}
</style>
js代码
<script>
if (!
/*@cc_on!@*/
0) return;
var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video".split(', ');
var i= e.length;
while (i--){
document.createElement(e[i]);
}
})()
</script>