我使用的是jscrollpane窗格。这些都是我正在使用的文件,顺序相同。
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/jquery-ui-1.9.2.custom.css">
<link rel="stylesheet" href="css/jquery.jscrollpane.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
.
content
.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/vendor/jquery-ui-1.9.2.custom.js"></script>
<script src="js/vendor/jquery.selectbox-0.2.js"></script>
<script src="js/jquery.jscrollpane.min.js"></script>这就是我如何应用这个插件。
var api = $('.scroll-style').jScrollPane(
{
showArrows:false,
maintainPosition: false,
}
).data('jsp');问题是在某些浏览器中,按鼠标滚轮滚动不能正常工作(请参考列表)。
如何调整鼠标滚轮的速度?
与-> chrome、IE9配合使用时,鼠标滚轮工作正常
鼠标滚轮在-> Firefox15、IE8上完全不起作用
我在IE8和火狐中也很需要它。
发布于 2017-10-15 06:33:46
jquery.mousewheel.js - jQuery鼠标插件。这是可选的,但建议您将其包括在内,以允许人们使用鼠标滚轮滚动您的内容。
发布于 2013-08-22 18:34:31
看起来你没有包括鼠标滚轮js。请包含此处的最新版本https://github.com/brandonaaron/jquery-mousewheel/downloads
要获得鼠标滚轮速度,请使用mouseWheelSpeed
示例jQuery('.scroll-style').jScrollPane({mouseWheelSpeed : 50});
https://stackoverflow.com/questions/17228295
复制相似问题