我想滚动水平滚动时有很多article
,而不是让他们跳下去。所以我希望它能够滚动,以便您可以看到其余的内容。但它不起作用。HTML CSS水平滚动
段:
#latest {
background: #eee;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
overflow-x: scroll;
overflow-y: hidden;
height: 150px
}
article {
width: 250px;
height: 150px;
background: #ccc;
margin-right: 30px;
float: left
}
<div id="latest">
<div id="wrapper">
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
<article></article>
</div>
</div>
究竟不起作用怎么办呢?你可以在[JSFiddle](http://jsfiddle.net/)上向我们展示一个例子吗? –
#latest没有列出滚动的文章 – sfsefsf33fs3fs3fs