CSS图像无法加载 [英] CSS images will not load

查看:100
本文介绍了CSS图像无法加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在努力寻找我遇到的问题的答案,我

迫切需要一些关闭:)


我在css文件中有一堆背景图像可以在本地看到
但是当我上传到远程服务器时他们不会show。


我检查了实际链接,这是正确的(例如''../ images / main /

brc.gif'')。为了确保我也尝试了URL方法(例如''http://

www.redstudio.com.au/client/os/images/main/brc.gif''),这是也好

正确,但无济于事。


朋友建议我尝试将图像放在DIV中,因为我需要
一直把图像放在一个单元格内的一个类中。这也是

没有任何区别。


我注意到在Safari中测试时,Activity实用程序

表示背景图片被禁止。也许这是一个

线索?


标准< IMG>也被放在文件中作为测​​试

以查看它们是否加载,这些都是远程可见的。所以它必须

与CSS有关。


我还W3验证了HTML和CSS,两者都是100%正常。


网站/地址可以在这里查看:

http://www.redstudio.com/client/os/index.html

http://www.redstudio.com/client/os/css/os.css


任何帮助都会非常感激,


干杯,


Marc

Hi,

I''m struggling to find answers on the problem I''m having, and I
desperately need some closure :)

I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won''t show.

I checked the actual link, which is correct (e.g ''../images/main/
brc.gif''). To make sure I also tried the URL approach (e.g. ''http://
www.redstudio.com.au/client/os/images/main/brc.gif''), which is also
correct, but to no avail.

A friend suggested that I should try placing the image in a DIV as I
had been placing the images inside a class within a cell. This also
did not make any difference.

I have noticed that while testing in Safari, the Activity utility
states that the background images are ''forbidden''. Maybe this is a
clue?

Standard <IMG>''s have also been placed within the document as a test
to see if they load, and these are all visible remotely. So it must
have somehting to do with the CSS.

I''ve also W3 validated the HTML and CSS and both are 100% OK.

The site/soure can be viewed here:

http://www.redstudio.com/client/os/index.html

http://www.redstudio.com/client/os/css/os.css

Any help would be really appreciated,

Cheers,

Marc

推荐答案

ma *** ********@gmail.com 写道:
ma***********@gmail.com wrote:

我在css文件中有一堆可见的背景图像

本地,但当我上传到远程服务器时,他们不会显示。
I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won''t show.



您的页面使用的CSS文件不包含对

背景图像的任何引用。

The CSS file your page uses does not contain any references to
background images.


网站/地址可以在这里查看:

http://www.redstudio.com/client/os/index.html



页面要求:


url(" /styles/ns-uc.css");

The page asks for:

url("/styles/ns-uc.css");

http://www.redstudio.com/client/os/css/os.css



这似乎是一个空文件。无论如何,你的页面并不是指它。


HTH,

Osmo

That seems to be an empty file. Anyway, your page is not referring to it.

HTH,
Osmo


Osmo Saarikumpu schrieb:
Osmo Saarikumpu schrieb:
ma ********** *@gmail.com 写道:
ma***********@gmail.com wrote:

>我在css文件中有一堆背景图像,在本地可见
但是当我上传到远程服务器时,他们不会显示。
>I have a bunch of background-images in a css file that are visible
locally, but when I upload to a remote server they won''t show.



您的页面使用的CSS文件不包含对

背景图像的任何引用。


The CSS file your page uses does not contain any references to
background images.


>网站/地址可以在这里查看:

http://www.redstudio.com/client/os/index.html



页面要求:


url(" /styles/ns-uc.css");


The page asks for:

url("/styles/ns-uc.css");


> http://www.redstudio.com/client/os/css/os.css



这似乎是一个空文件。无论如何,你的页面并不是指它。


HTH,

Osmo


That seems to be an empty file. Anyway, your page is not referring to it.

HTH,
Osmo



另外,你应该清理你的HTML代码:


- 设置正确的编码:你使用的是UTF-8字符,但编码

设置为iso-8859 -1。


- 不要使用XHTML样式(在某些HTML元素中尾随/),而

声明loose.dtd

- 把< formaround表放在不知名的地方


克劳斯

-

Linux用户#54760

指纹:890bdbdeaa3ddab07bac87a3115d553a

Additionally, you should clean up your HTML code:

- Set the correct encoding: you are using UTF-8 characters but encoding
is set to iso-8859-1.

- Do not use XHTML style (the trailing / in some HTML elements) while
declaring loose.dtd

- Put the <formaround the table instead in the middle of nowhere

Klaus
--
Linux User #54760
Fingerprint: 890bdbdeaa3ddab07bac87a3115d553a


对不起。我一直指着网站...... eek!


试试这个:

http://www.redstudio.com.au/client/os

http://www.redstudio.com.au/client/os/css /os.css

I''m sorry. I have been pointing to the site... eek!

Try this instead:

http://www.redstudio.com.au/client/os

http://www.redstudio.com.au/client/os/css/os.css


这篇关于CSS图像无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆