![](/img/trans.png)
[英]Delay jQuery animation until the background image is displayed by Supersized plugin
[英]Supersized Jquery conflict with background image
我在使用nextgen画廊的wordpress网站上遇到问题(由超大字体提供支持),所以我创建了一个div来管理背景图片
<div>
<img id="backgroundx" title="" alt="" src="wp-content/uploads/2012/09/DSC_5269.jpg"/>
</div>
它的CSS是
#backgroundx {
left: 0;
position: absolute;
width: 100%;
z-index: 1000;
}
.container {
position: relative;
z-index: 1001;
}
一切都很好,但是当我输入NextGEN类别(例如http://newlightphotography.org/category/bambini-2 )时,它不会显示背景,但每隔一页(包括扩展的画廊http://newlightphotography.org/) madalina-149 )工作正常。
奇怪的是,这两个页面的图像行为不同,但您可能会发现此快速修复可以接受:
<div>
<img id="backgroundx" title="" alt="" src="/wp-content/uploads/2012/09/DSC_5269.jpg"/>
</div>
只需在wp-content之前添加一个根斜杠。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.