开发者

Can't view embedded .jpg in html/php website

I have a php/html website on my home server that has several embedded .jpg images in the style.css file I can view the website fine from the computer that is running the server but when I try to access it from another computer on my network I can't see the images I get a red x inside of a little box.

Any ideas?

Thanks,

#wrapper {
width:400px;
h开发者_如何转开发eight:600px;
background-color:#3CF;
margin:0 auto;
background-image:url(wrapper.jpg);
background-repeat:no-repeat;

}

#registerwrapper {
width:400px;
height:600px;

margin:0 auto;

background-image:url(register.jpg);
background-repeat:no-repeat;

}


try using an absolute path to the images. As it stands you're storing the images in the same location as you are storing your CSS

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜