2012-11-22 3 views
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 */ 
} 

답변

1

안녕하세요 지금 당신이bodymin-width:960px;이 문제

고정 등이

처럼 정의
body{ 
min-width:960px; 
} 

결과

enter image description here

+1

내 몸을 정의입니까? 본문 태그 자체에서와 마찬가지로? – Andrew

+1

@Andrew 네 몸에 스타일 시트를 정의 할 수 있습니다. {min-width : 960px;} –

+0

감사합니다! 모든 것이 작동한다. – Andrew