Home >Web Front-end >JS Tutorial >JS implementation of image horizontal scrolling effect sample code_javascript skills

JS implementation of image horizontal scrolling effect sample code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:23:411038browse
Copy code The code is as follows:





Picture Horizontal scrolling code

< style type="text/css">
.box{ margin:0 auto; height:70px; width:810px; padding:10px; border:1px solid #FF0000; }
.box img{ margin- right:20px;}
#goleft {width: 800px;height: 70px;overflow: hidden;}
#goleft #gols {width: 33100px;}
#goleft1, #goleft2 {width: auto; float: left;}









6
5
< ;a href="" >4
3
2
1










Effect:
JS implementation of image horizontal scrolling effect sample code_javascript skills
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn