简体   繁体   English

我网站的顶部横幅和背景图片仅显示在IE中,而不显示在FF中。 怎么了?

[英]My site's top banner and background images only show up in IE and not in FF. What's wrong?

Hey thanks if you can help, I've been learning as I go with this, my first site, and now I'm stumped. 嘿,谢谢,如果您能提供帮助,我一直在学习,这是我的第一个网站,现在我很困惑。

http://www.enviro-bridge.ca http://www.enviro-bridge.ca

It seems I've changed something recently that prevents FF and Crome from recognizing the template's images. 看来我最近做了一些更改,使FF和Crome无法识别模板的图像。 I can't figure out what has happened. 我不知道发生了什么事。 And it looks fine in IE8! 在IE8中看起来还不错!

If you need more info let me know. 如果您需要更多信息,请告诉我。

The url's to the banner images are local to your machine. 标语图片的网址在您的计算机本地。 So on any other computer the site will not work even in IE. 因此,在任何其他计算机上,该站点即使在IE中也无法正常工作。 Make the urls relative to your site's ROOT path and it should work if you have thos images on your server that is 使网址相对于您网站的ROOT路径,并且如果服务器上有thos映像,则该网址应该可以工作

background-image: url(file://///sanders/web/envirobridge/Publish/images/banner_bkgd.jpg);

should be something like: 应该是这样的:

background-image: url(/images/banner_bkgd.jpg);

I think it might have something o do with your css file here: 我认为这可能与您的CSS文件有关:

background-image: url(file://///sanders/web/envirobridge/Publish/images/banner_bkgd.jpg);

Can you do something different with that url? 您可以对该网址执行其他操作吗?

Don't use absolute paths for images, links, etc. 不要为图片,链接等使用绝对路径。

In your CSS, you're using absolute paths, like this: 在CSS中,您使用的是绝对路径,如下所示:

file://///sanders/web/envirobridge/Publish/images/content_bkgd_tile.jpg

Use relative paths. 使用相对路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM