overflow
,允许从左到右移动)
.slide-container {
overflow: auto;
white-space: nowrap;
}
<div class="slide-container">
<img src="http://placehold.it/200" />
<img src="http://placehold.it/200" />
<img src="http://placehold.it/200" />
<img src="http://placehold.it/200" />
</div>
.swipe{
overflow:auto;
white-space:nowrap;
}
<div class=swipe>
<img src="">
<img src="">
<img src="">
.
.
.
</div>