开发者

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

开发者 https://www.devze.com 2023-02-01 23:16 出处:网络
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 acces

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

精彩评论

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

关注公众号