每次我拖动浏览器窗口以使其自动调整为显示器大小的一半时,侧面都会出现一个空块。我尝试将宽度更改为 min-width: 100%,但这并不能解决问题。有任何想法吗?
网站:http ://andrewgu12.kodingen.com/graphicDesign/index.php
CSS:
div#bodyContent-container {
min-width:100%;
height: 100%;
min-height:1100px;
background:#f3f3f3;
margin: 0 auto;
padding: 0;
}
div#bodyContent {
width:960px;
height:100%;
min-height: 1024px;
margin: 0 auto;
padding: 0;
-webkit-box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888;
-moz-box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888; /* Firefox 3.6 and earlier */
box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888;
padding-top: 200px;
}
footer {
min-width: 100%;
height:50px;
color:#ffffff;
text-align: center;
padding-top: 20px;
bottom: 0;
background: #161616; /* Old browsers */
background: -moz-linear-gradient(top, #161616 0%, #202020 92%, #131313 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#161616), color-stop(92%,#202020), color-stop(100%,#131313)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* IE10+ */
background: linear-gradient(top, #161616 0%,#202020 92%,#131313 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#161616', endColorstr='#131313',GradientType=0 ); /* IE6-9 */
}