2012-08-29 86 views
0

进出口使用本教程(鼠标滚轮插件和脚本)做一个水平滚动页面:滚动页面,平行鼠标滚轮

http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/

滚动适用于Chrome而不是Firefox的,它doesn't上工作在教程中的Firefox也,任何想法如何解决它?

$(function() { 
    $("body").mousewheel(function(event, delta) { 
    this.scrollLeft -= (delta * 30); 
    event.preventDefault(); 
    }); 
}); 
+0

你是什么意思,它不工作? – Ibu

+0

看到这个:http://stackoverflow.com/questions/3928848/jquery-scrollleft-not-working 它看起来像你需要或许使用$(document).scrollLeft。 – jbehren

+0

由“它doesnt工作”我的意思是,它不工作在Firefox上....... – codek

回答