[英]Replace scrollbar within small text area with custom scrollbar
Is there a way to replace a standard scrollbar with a custom image (arrow graphics) that allows visitors to click on the graphics and scroll? 有没有一种方法可以将标准滚动条替换为允许访问者单击图形并进行滚动的自定义图像(箭头图形)? 2 graphics (up and down arrow).
2个图形(上下箭头)。
我过去使用过jScrollPane ,事实证明它非常有用!
Check out the jScrollPane: 查看jScrollPane:
http://jscrollpane.kelvinluck.com/ http://jscrollpane.kelvinluck.com/
Recent versions of WebKit (Safari, Chrome) allow this via CSS. WebKit的最新版本(Safari,Chrome)允许通过CSS进行此操作。 Maybe this will be adopted by other browsers in the near future.
也许不久的将来它将被其他浏览器采用。
http://webkit.org/blog/363/styling-scrollbars/ http://webkit.org/blog/363/styling-scrollbars/
For now, you will have to stick to JavaScript and, as others have mentioned, jScrollPane is probably the best one around at the moment. 目前,您必须坚持使用JavaScript,并且正如其他人提到的那样, jScrollPane可能是目前最好的JavaScript。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.