每次我拖动浏览器窗口,所以我自动调整到显示器的一半大小,侧面显示一个空白块。我已经尝试将宽度更改为最小宽度: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 */
}
答案 0 :(得分:1)
您好定义 body
min-width:960px;
并修复此问题
就像这样
body{
min-width:960px;
}
结果