将小文本区域内的滚动条替换为自定义滚动条 [英] Replace scrollbar within small text area with custom scrollbar

查看:96
本文介绍了将小文本区域内的滚动条替换为自定义滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以用一个自定义图像(箭头图形)替换标准滚动条,以允许访问者点击图形并滚动? 2图形(向上和向下箭头)。

解决方案

最近版本的WebKit(Safari,Chrome)允许通过CSS。也许这将在不久的将来被其他浏览器采用。



jScrollPane 可能是最好的一个在此刻。


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).

解决方案

Recent versions of WebKit (Safari, Chrome) allow this via CSS. Maybe this will be adopted by other browsers in the near future.

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.

这篇关于将小文本区域内的滚动条替换为自定义滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆