在<head></head>标签中加入一句话:<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
此话一定要加在<head>开始标签之后。
例:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="html/css/style.css" rel="stylesheet" type="text/css" />
<title>登陆页</title>
<script type="text/javascript">
function go(){
window.location.href="index.html";
}
</script>
</head>
此话一定要加在<head>开始标签之后。
例:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="html/css/style.css" rel="stylesheet" type="text/css" />
<title>登陆页</title>
<script type="text/javascript">
function go(){
window.location.href="index.html";
}
</script>
</head>