在我的应用程序中,我无法完全覆盖 IE8 中的浏览器窗口页面。
的HTML:
<body class="body">
<div class="wrapper">
<div class="main-holder">
<form id="Form1" runat="server">
</form>
</div>
</div>
</body>
和CSS:
.body {
background: -webkit-gradient(linear, left top, right top, from(#2F2727), color-stop(0.25, #1a82f7), color-stop(0.5, #2F2727), color-stop(0.75, #1a82f7), to(#2F2727));
background: -webkit-linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
background: -moz-linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
background: -ms-linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
background: -o-linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
background: linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
-pie-background: linear-gradient(left, #2F2727, #1a82f7, #2F2727, #1a82f7, #2F2727);
behavior: url(PIE.htc);
height: 100%;
}
.main-holder {
width: 1000px;
min-height: 600px;
margin: 10px auto;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 10px;
-moz-box-shadow: 10px 10px 10px #000;
-webkit-box-shadow: 10px 10px 10px #000;
box-shadow: 10px 10px 10px #000;
background: -webkit-gradient(linear, left bottom, left top, from(#F8AC25), color-stop(0.05, #FFF999), color-stop(0.5, #F8AC25), color-stop(0.95, #FFF999), to(#F8AC25));
background: -webkit-linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
background: -moz-linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
background: -ms-linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
background: -o-linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
background: linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
-pie-background: linear-gradient(top, #F8AC25, #FFF999 5%, #F8AC25, #FFF999 95%, #F8AC25);
behavior: url(PIE.htc);
}
* {
margin: 0;
padding: 0;
}
body {
font-family: Arial Sans-Serif;
}
但在 IE8 中,页面顶部和底部有两条白色条带。出于这个原因,body 并没有完全覆盖页面,但在 Firefox 中它确实如此。
截图 IE8:
截图火狐:
在 IE8 中,它们是围绕包装器的偏移量:
任何信息都会对我很有帮助。
谢谢。