我有設定爲100%的高度與溢出DIV菜單:滾動。在DIV我有一個ul li。我遇到的問題是它不會讓我一直往下滾動以查看最後的li。我幾乎看不到它。DIV設置爲溢出:滾動,但所有的方法不會滾動到底
我認爲這是與我的頭,因爲當我刪除了頭,我可以看到它。當我放回標題時,它將在瀏覽器下進行,並且無法一直向下滾動以查看最後的li。
兩個利和頭的高度幾乎是相同的,它使很大的意義的是,報頭引起問題。我認爲不是特別的標題,但更多的是我在CSS中做的。
爲什麼不能一直滾動到底部?解決辦法是什麼?
樣品在這裏:http://jsfiddle.net/D5KU3/2/
<div class="container">
<!--header-->
<div class="header">
</div>
<!--end header-->
<!--left-->
<div class="left">
<!--ul starts here-->
<ul>
<li class="hybrid">
<a href="#">
<p class="title">Why Cant</p>
<p class="type">I scroll all the way to the bottom</p></a>
</li>
重複李 20倍
</ul> <!--ul ends here-->
</div> <!--container ends here-->
CSS
body, html {
height:100%;
}
body {
background:white;
}
.container {
width:260px;
height:100%;
overflow:hidden;
background:silver;
margin:0 auto;
font-family:sintony;
}
.header {
width:100%;
height:60px;
background:#000;
}
.left {
width:260px;
height:100%;
background:#fff;
float:left;
overflow:scroll;
}
li.hybrid a {
display:block;
background:#16BF14;
height:60px;
width:260px;
text-decoration:none;
position:relative;
}
li.purple a {
display:block;
background:#3370CC;
height:60px;
width:260px;
text-decoration:none;
position:relative;
}
p.title {
position:relative;
padding-left:10px;
}
p.type {
font-size:12px;
position:relative;
padding-left:10px;
}
ul {
margin:0;
padding:0;
}
li p {
margin:0;
padding:0;
list-style-type:none;
}
你應該選擇一個答案隊友!他們花時間回覆 – MeV