0
每次我拖動我的瀏覽器窗口,讓它自動調整到一半的顯示器大小,一個空的塊顯示在一邊。我試過將寬度改爲最小寬度:100%,但這並不能解決問題。有任何想法嗎?CSS半屏幕瀏覽器寬度
網站: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 */
}
定義我的身體嗎?就像身體標籤本身一樣? – Andrew
@Andrew是的,你可以在你的樣式表中定義你的body {min-width:960px;} –
謝謝!一切正常 – Andrew