use*_*349 4 html javascript internet-explorer visual-studio-2012 internet-explorer-11
我正在使用visual studio 2012
我有这个简单的html页面,而不是asp.net页面:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Float</title>
<link rel="stylesheet" href="Styles/style.css" />
</head>
<body>
<div class="header"></div>
<div class="slideBar"></div>
<div class="content"></div>
<div class="footer"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我在谷歌浏览器上运行它.它运作良好.
当我在Internet Explorer上调试它时.我收到了这个错误:

对于那些认为sytle sheet是问题的人.这是我的样式表
html, body {
margin:0px;
height:100%;
}
.header {
width:100%;
height:20%;
background-color:red;
}
.footer {
width:100%;
height:20%;
background-color:green;
}
.slideBar {
width:20%;
height:60%;
float:right;
background-color:blue;
}
.content {
width:80%;
height:60%;
background-color:yellow;
}
Run Code Online (Sandbox Code Playgroud)
它在谷歌chrome和mozilla上工作得非常好.代码非常简单.只是IE11不是
我将我的html页面链接添加到兼容模式后.我有这个例外:

| 归档时间: |
|
| 查看次数: |
12911 次 |
| 最近记录: |