Jquery galleria - 让图库中的第一张图片自动出现
我已将优秀的 Galleria 插件添加到我正在开发的网站中。然而,与演示不同的是,我无法在页面加载时自动显示第一张图像。
目前,您必须单击图像,然后图像才会出现,之后一切都会按预期进行。是的,我尝试将第一张图像的类别设置为“活动”,但没有任何效果。
我有什么明显遗漏的吗?
I've added the excellent galleria-plugin to a website I'm working on. However unlike the demo, I've been unable to make the first image display automatically on page-load.
Currently, you have to click an image, before one will appear, after that everything works as expected. And yes, I've tried setting the class of the first image to "active", but without that having any effect.
Is there anything obvious I'm missing ?
There's a live example at: http://kaciekimber.co.za/property/r8453d
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想我已经找到问题了。添加
而不是
,您的第一个图像将自动加载。
I think I've found the problem. Add
<li class="active">
instead of<img class="active" ... />
and your first image will load automatically.试试这个:
Try this:
是的,它是一个很酷的画廊,我也在使用它:
http://www.achlandscapes.co。英国/decking.htm
Yeh its a cool gallery I am using it as well :
http://www.achlandscapes.co.uk/decking.htm