![](/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.