我正在使用这个 http://jscrollpane.kelvinluck.com/ (另请参阅:http://jscrollpane.kelvinluck.com/image.html)
我有一系列我希望通过水平滚动条向观众提供的图像。 jscrollpane 有一个自动重新初始化属性,但我不确定这是否正常工作
它等待一些图像加载,然后显示滚动条[是否可以立即显示这一点,最初?]
-
如果在加载所有图像之前开始滚动,则窗格宽度不准确你无法滚动到所有图像
我的链接:http://iamjpg.com/photo/test.html
参考:Jquery jscrollpane 内的宽度以适应不同的宽度
I'm using this http://jscrollpane.kelvinluck.com/ (also see: http://jscrollpane.kelvinluck.com/image.html)
I have a series of images that I want available to the viewer via a horizontal scroll bar. There is an auto-reinitialise property available with the jscrollpane, however im not sure if this is working properly
-
It waits for some of the images to load and then shows the scrollbar [is it possible to show this instantly, initially?]
-
If you start scrolling before all the images are loaded, the pane width is not accurate and you cant scroll to all the images
My link : http://iamjpg.com/photo/test.html
Reference: width within Jquery jscrollpane to accommodate different width
发布评论
评论(1)
您可以直接在图像标签中设置宽度和高度
,或者您可以在窗口加载完成时初始化 jscrollpane。
我会选择解决方案 1,但如果您没有宽度/高度,那么解决方案 2 也可以工作。
如果您通过 ajax 加载图像,则需要从 API (http://jscrollpane.kelvinluck.com/api.html) 调用重新初始化函数。
希望这有帮助!
You can set the width and height in the image tag directly
Or you can initialize your jscrollpane when the window finished loading.
I would go with solution 1 but if you don't have the width/height then solution 2 can also work.
If you're loading images through ajax, you will need to call the reinitialise function from the API (http://jscrollpane.kelvinluck.com/api.html).
Hope this helps!