使用jquery scrollbox插件更改div的高度 [英] change the height of a div with jquery scrollbox plugin

查看:107
本文介绍了使用jquery scrollbox插件更改div的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jquery 滚动框插件来选择一些图片。



现在我可以这里,但你可以看到



如何将.scroll-img div的高度更改为当前图像高度,以便当前图像下方的图像


$ b code> $('#roller')。scrollbox({
direction:'h',
switchItems:1,
distance:0
}


解决方案

只需添加 :500px; .scroll-img ul li 将工作。
这是小提琴


I m using the jquery scrollbox plugin to marquee some images.

Now i can do that here but as you can see the images below in the list are being shown.

How can i change the height of the .scroll-img div to the current image height so that the images below the current image are not shown.

the code also does not give a option onchange event -

 $('#roller').scrollbox({
    direction: 'h',
    switchItems: 1,
    distance: 0
 });

解决方案

Simply add margin-bottom:500px; to .scroll-img ul li will works. Here is the Fiddle.

这篇关于使用jquery scrollbox插件更改div的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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