Write cell phone Station when we will encounter such as the left and right sliding effect, just beginning also mistakenly thought is a certain JS effect, later knew, originally is the CSS can realize.
* {margin:0;padding:0;}. Box{width:100%;Height:44px;background:Rgba (252, 252, 252,. 8);Border-bottom:1px solid #ebebeb;Line-height:40px;Overflow:Hidden;position:relative;}. Box2{width:100%;Overflow:Hidden;Height:52px;Overflow-x:Auto;position:relative;}. Box3{width:1400px; Left:0;position:Absolute;Top:0;}. Box3 Div{width:86px;Height:44px;background:#999;float: Left;padding:0 10px;}
<Divclass= "box"> <Divclass= "Box2"> <Divclass= "Box3"> <Div>First</Div> <Div>Second</Div> <Div>Third</Div> <Div>Four</Div> <Div>Five</Div> <Div>Six</Div> <Div>First</Div> <Div>Second</Div> <Div>Third</Div> <Div>Four</Div> <Div>Five</Div> <Div>Six</Div> </Div> </Div></Div>
Mobile Station Horizontal scrolling