1、<meta htt-equiv = "X-UA-Compatible" content = "IE-8">
2. Google Chrome Frame也可以让IE用上Chrome的引擎:
<meta http-equiv = "X-UA-Compatible" content="chrome = 1">
3.强制IE8使用IE7模式来解析
<meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7">
//或者
<meta htttp-equiv = "X-UA-Compatible content = "IE-7">
4.强制IE8使用IE6或IE5模式来解析
<meta http-equiv = "X-UA-Compatible" content = "IE=6"
<meta http-equiv = "X-UA-Compatible" content = "IE=5"
5.如果一个特定版本的IE支持所要求的兼容性模式多于一种,如:
<meta http-equiv = "X-UA-Compatible" content="IE = 5; IE=8">
6.弹性盒子
弹性盒子在IE8中无法使用
7.innerHTML
if(getBrowserVersion.isIE8) {
$('#invoiceListDot').innerHTML = htmlTemplate;
}else{
$('#invoiceListDot').text(htmlTemplate);
}
8.创建ajax对象
if(window.XMLHttpRequest){
xmlhttp=newXMLHttpRequest();
}else{
xmlhttp=new newActiveXObject("Microsoft.XMLHTTP");
}