0

I'm trying to setup a page background that scales with resolution but still looks nice.. heres what Im using..

The site is http://www.gd-gaming.com/wordpress, If you inspect it with firebug, it just doesnt load the image... but if I add that path straight into the css, it works.

Additionally, I use this same code on www.gd-gaming.com for that background and it works perfectly. Help needed!!

<div id="background"> <img class="background" src="images/bgmain.jpg" /> </div>


#background {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: -1; 


}

img.background {
width: 100%;
}

fieldset, img {
border: 0 none;
}
4

1 回答 1

0

你需要确保它images/bgmain.jpg确实存在。我在你的服务器上找不到它。相反,我将其替换为

<img class="background" src="/images/GDG/skyrimpapa.jpg">

在您的 /wordpress 页面(您的主页上使用的 dame 图像)上,它运行良好。看起来您的图像不存在,或者您没有正确设置该图像的权限。

于 2013-07-08T23:39:20.370 回答