我有一個左列與背景圖像和身體的另一個背景圖像,因此它填充屏幕的其餘部分。我在左側列的右側有一個內容區域,它將在瀏覽器窗口之後垂直延伸。將左列設置爲100%高度後,向下滾動左列的背景圖像不會超出屏幕的原始大小。有沒有一種純CSS的方式來讓左列延伸超過瀏覽器窗口的原始高度,以匹配內容區域?列BG圖像不會延伸到100%的高度
http://ophilium.com/test/test.html
html {
height: 100%;
}
body {
height: 100%;
background-image: url(../images/rightPanel.png);
background-repeat: repeat;
height: 100%;
}
#left {
background-repeat: repeat-y;
width: 207px;
padding: 10px;
float: left;
height: 100%;
background-image: url(../images/leftPanel.png);
}
#right {
height: 500px;
padding: 10px;
min-width: 773px;
float: left;
}
#container {
position: relative;
min-width: 1100px;
height: 100%;
background-repeat: repeat;
}
這並不起作用 – Eric 2012-04-28 23:48:15