div를 만들려고합니다. 다음 줄로 이동하는 대신 이미지가 브라우저 너비를 넘치게됩니다.Div 너비 오버플로 설정 너비없이 브라우저 너비
HTML 마크 업 :
<div class="carousel">
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
<img src="http://placehold.it/200x200"/>
</div>
CSS :
.carousel {
overflow: scroll;
overflow-x: hidden;
}
.carousel img{
display: inline-block;
}
이 사업부에 폭을 설정하지 않고이 작업을 수행 어쨌든이 있나요?
아이디어는이 게시물에 매우 유사합니다 http://stackoverflow.com/questions/9707807/how-to-force-horizontal-scrolling-in-an-html-list- using-css :) – castle