简体   繁体   English

想要帮助自动滚动div中的内容

[英]Want help for auto-scroll of content in div

我想水平滚动div的内容,它应该是自动滚动..任何人都可以帮助我吗?我尝试了很多jquery插件但我仍然无法做到这一点...任何更简单的方法?帮助我...

In CSS, set overflow to scroll , so that any content that overflows out of the div will scroll. 在CSS中,将overflow设置为scroll ,以便从div中溢出的任何内容都将滚动。 Make sure height is fixed, and be sure to test this with other CSS attributes to get it to work for you. 确保height已修复,并确保使用其他CSS属性对其进行测试,以使其适用于您。

Oh my god, don't use MARQUEE!! 天啊,不要使用MARQUEE! There are jQuery plugins you can use..try this one: http://www.smoothdivscroll.com/ - Good luck. 你可以使用jQuery插件。这一个: http ://www.smoothdivscroll.com/ - 祝你好运。

是的,最后我得到了我自己的问题的答案......我使用MARQUEE为我的div而且它有效...感谢所有试图帮助我的人......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM