【发布时间】:2010-01-25 10:34:32
【问题描述】:
当我尝试在 Safari 4 中实现 jSrollpane 时出现此错误:
TypeError:表达式 '$drag[0]' [undefined] 的结果不是对象。
然后当我在 Chrome 中尝试同样的事情时,我得到了这个错误:
未捕获的类型错误:无法读取未定义的属性“offsetHeight”
但是为什么呢?它在 FF 中运行良好。
有什么想法吗?
【问题讨论】:
-
我在 Safari 或 Chrome 中的任何示例 jScrollPane 页面 (jscrollpane.kelvinluck.com/#examples) 上都看不到这个问题。你能提供一个显示问题的 URL 吗?你用的是什么版本的 jScrollPane 和 jQuery?
标签: jquery safari google-chrome jscrollpane