在我的頁面我想要內容(頁面上的紅色)擴展到頁腳(黃色)......我找不到任何方法來解決這個過去3天。請幫我..html/css內容不伸展
index.html
<body>
<div id="wrapper">
<div id="header">HEADER</div>
<div id="content">CONTENT</div>
<div id="footer">FOOTER</div>
</div>
</body>
這是我的style.css
html,
body {
margin:0;
padding:0;
height:100%;
background-color: blue;
}
#wrapper {
min-height:100%;
position:relative;
}
#header {
padding:10px;
background:#5ee;
}
#content {
padding:10px;
padding-bottom:80px;
background-color: red;
width: 1000px;
margin: 0 auto;
}
#footer {
width:100%;
height:80px;
position:absolute;
bottom:0;
left:0;
background:#ee5;
}
你將需要使用javascript來實現這個 – Pete 2013-02-13 13:39:53
我應該怎麼做javascript – fish40 2013-02-13 13:40:58
這個人試圖實現同樣的事情:http://stackoverflow.com/questions/13836301/set-a-min-height-on- content-container/13836477#13836477 – Pete 2013-02-13 13:46:14