I am using visual studio 2012
I have this simple html page, not asp.net page:
<!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>
I run it on google chrome. it works good.
when I debug it on internet explorer. I got this error:
Edit
For those who think that the sytle sheet is the problem. here is my style 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;
}
It is working very good on google chrome and mozilla. the code is very very simple. just that IE11 is not
Edit2
After I added my html page link to the compatibility mode. I got this exception:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…