Key styles:
white-space:nowrap;/*The content is arranged horizontally without wrapping*/
overflow-x:auto; overflow-y:hidden;/*Hide the overflow part. The horizontal scroll bar appears automatically and the vertical scroll bar is hidden*/
Preview code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml ">
<head>
<meta. http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS implements horizontal arrangement of images, overflow hides horizontal scrolling</title>
<style.type="text/css">
<!--
.inimg {width:670px;height:395px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;}
.inimg img {width:670px;height:375px;}
-->
</style>
</head>
<body>
<div class="inimg">
<img src=" " width="670" height="375" alt="img" />
<img src=" " width="670" height="375" alt="img" />
<img src=" " width="670" height="375" alt="img" />
<img src=" " width="670" height="375" alt="img" />
</div>
</body>
</html>