我在我的存檔和搜索頁面的右側填充了填充,我相信它與我的body元素有關,但我不太確定這些頁面上的不同之處來自網站上的其他頁面,因爲它們都使用相同的格式,所以它們在樣式上都很好。 It's a wordpress website.正如我所說的,它只發生在這個頁面,搜索頁面和其他所有的都很好,所以我很困惑它在做什麼。當窗口被調整大小時,右邊的CSS填充較小
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; background: url(img/BG.jpg) repeat; min-width:1024px; }
body { margin: 0px; padding 0px; font-size: 13px; line-height: 1.231; background: url(img/NAV-bg.jpg) top repeat-x;}
header { width: 960px; height: auto; margin: 0 auto; display: block;}
#container { width: 960px; margin: 20px auto; padding: 0 1.5em;}
aside { width: 260px; height: auto; float: left; position: relative;}
#main { width: 650px; height: auto; float: right; position: relative;}
#footer { width: 100%; min-width:1024px; display: block; height: 503px; background: url(img/FOOTER-bg.jpg) repeat-x; background-color: #821d20; position: relative; top: 100px; }
如果你減少窗口的大小,你會發現,在頁面底部的滾動條顯示出來,然後在右邊的填充開始初具規模。如果你的窗口變大了,那麼填充空間就會消失,底部的滾動條消失。我是否以任何方式限制了我的身體標記以實現此目的?
我已經看過這一個,但我已經有一個最小寬度定義。 Website has strange whitespace on right side of the page when the browser is resized to a smaller window