0

请检查此代码:http: //jsfiddle.net/rkumarnirmal/Rq7b2/2/

我正在做的是显示一些文字。如果单击文本,则列表将与 Jscrollpane 一起显示。但是这里显示了列表并且没有显示 jscrollpane。

我在那里犯了什么错误?谁能帮助我?

谢谢!

4

2 回答 2

1

当内容改变时你必须重新调用它,

http://jsfiddle.net/Rq7b2/3/

于 2012-04-21T10:56:07.433 回答
0

You can set the JScrollPane to auto-reinitialize.

http://jsfiddle.net/L7KSa/

http://jscrollpane.kelvinluck.com/settings.html

autoReinitialise - boolean (default false)

Whether jScrollPane should automatically reinitialise itself periodically after you have initially initialised it. This can help with instances when the size of the content of the scrollpane (or the surrounding element) changes. However, it does involve an overhead of running a javascript function on a timer so it is recommended only to activate where necessary. Demo.

于 2012-04-23T20:49:22.657 回答