[英]simplyScroll - jQuery issues
I was given a project at work which is using simplyScroll for two layers of background images. 我得到了一个正在工作的项目,该项目使用simpleScroll来获取两层背景图像。 You can view the site by going to newcombspring.stifel-marcin.com .
您可以转到newcombspring.stifel-marcin.com来查看该站点。
Anyway, when you click to the top background and drag it the bottom half disappears completely. 无论如何,当您单击顶部的背景并将其拖动时,底部的一半将完全消失。 What could be causing this?
可能是什么造成的?
Also, I tried using autoMode: 'loop'
to get the background to continue but it still stops. 另外,我尝试使用
autoMode: 'loop'
来使背景继续,但仍会停止。 Any ideas on what else I could try? 关于其他我可以尝试的想法?
It's happening because the parent div
has a height
smaller than the background itself. 发生这种情况是因为父
div
的height
小于背景本身的height
。
It looks like your background has a height of 620px but .scroll
div has a height of 300px. 看起来您的背景高度为620px,但
.scroll
div的高度为300px。
In your stylesheet.css you can modify 在您的stylesheet.css中,您可以修改
.scroll {
height: 300px;
}
to 至
.scroll {
height: 620px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.