Jscroll在chrome和safari中不起作用 [英] Jscroll is not working in chrome and safari

查看:69
本文介绍了Jscroll在chrome和safari中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了Kelvin Luck的jScroll插件.首先,它是一个很棒的脚本.它在所有浏览器中都可以处理文本,即文本作为内容.但是,当我们插入图片时,滚动条在Safari和Chrome中无法使用...请帮助我.是javascrpt的初学者...:)

I tried teh jScroll plugin by Kelvin Luck. First of all its a wonderful script. Its working fine with text, ie text as contents, in all browesers. But when we insert images in that the scroll is not working in Safari and Chrome... please help me. Am a beginner in javascrpt...:)

重新整理

推荐答案

另一种方法是在加载整个页面后初始化插件

Another way of doing it is to initialise the plugin once the entire page is loaded

$(window).load(function(){
    $('.scroll-pane').jScrollPane();
})

这篇关于Jscroll在chrome和safari中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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