不间断横向滚动想必大家在很多场合都有见过吧,本文也使用DIV+CSS+JS实现一个,感兴趣的你可以参考下哈,希望对你学习有所帮助
DIV+CSS+JS实现不间断横向滚动代码
复制代码 代码如下:
.scroll_div {width:600px; height:49px;margin:0 auto; overflow: hidden; white-space: nowrap; background:#ffffff;}
.scroll_div img {width:120px;height:49px;border: 0;margin: auto 8px; }
#scroll_begin, #scroll_end, #scroll_begin ul, #scroll_end ul, #scroll_begin ul li, #scroll_end ul li{display:inline;}/* 设置ul和li横排 */
DIVCSS5演示说明:向左滚动
以上就是DIV+CSS+JS不间断横向滚动实现代码的详细内容,更多请关注本站其它相关文章!