简体   繁体   English

垂直滚动 Div

[英]Vertical Scrolling Div

i have a div 400px x 400px which contains text that i need to scroll.我有一个 400px x 400px 的 div,其中包含我需要滚动的文本。 I would like to do it with control on a couple of arrow images (up and down).我想通过控制几个箭头图像(向上和向下)来做到这一点。 Can this be done with jquery?这可以用jquery完成吗? I also dont want a scroller off to the side of the div.我也不希望滚动条位于 div 的一侧。 just a couple up and down arrows under the div to control the scrolling of the content.只需在 div 下的几个上下箭头来控制内容的滚动。

Any thoughts?有什么想法吗?

Thanks in advance.提前致谢。

This will be helpful: Scroll Position of div with "overflow: auto"这会有所帮助:使用“溢出:自动”滚动 div 的位置

Don't even need to use jQuery.甚至不需要使用 jQuery。

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

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