所以我的網頁不會滾動。我有一些揣測研究並試圖擺脫位置:固定,但似乎沒有幫助。有什麼建議麼?Html不滾動
這裏是CSS:
body {
height: 2000px
overflow: scroll;
}
#header {
z-index: 1;
position: relative;
width: 97.5%;
margin-top: 5px;
height: 60px;
background-color: #fffafa;
margin-bottom: 10px;
}
#footer {
clear: both;
position: relative;
width: 97.5%;
margin-top: 5px;
height: 30 px;
background-color: #ffc873;
margin-bottom: 5px;
}
.left {
position: relative;
margin-top: 70px;
height: 300px;
width: 20%;
background-color: #689ad3;
float: left;
}
.right {
height: 200px;
width: 20%;
margin-top: 70px;
height: 300px;
background-color: #689ad3;
float: right;
}
謝謝!
謝謝。其他人建議這是解決我的問題 - 嘗試沒有。仍然沒有快樂。 – user3036344