【发布时间】:2014-10-07 09:41:30
【问题描述】:
当我在此示例jsfiddle example here 上绑定 scrool 时,我想修复第一个和最后一个 div,就像在 this image 上一样。
我在平板电脑上试过,但它不工作
这里是css
.mother_div {
display:block;
height:auto;
width:500px;
border:1px solid #000;
overflow-x:scroll;
}
.child_divs {
height:40px;
margin-bottom:1px;
background:green;
display:block;
width:1000px;
}
.child_divs div {
float:left;
line-height:40px;
color:#fff;
font-size:15px;
width:100px;
text-align:center;
}
.child_divs div:first-child {
background:#ccc;
color:#000;
}
.child_divs div:last-child {
background:#ccc;
color:#000;
}
【问题讨论】:
-
我无法理解,你能准确解释一下你想要在这里实现的目标吗?
标签: html css-position fixed horizontal-scrolling