我正在努力寻找我遇到的问题的答案,我 迫切需要一些关闭:) 我在css文件中有一堆背景图像可以在本地看到但是当我上传到远程服务器时他们不会show。 我检查了实际链接,这是正确的(例如''../ images / main / brc.gif'')。为了确保我也尝试了URL方法(例如''http:// www.redstudio.au/client/os/images/main/brc.gif''),这是也好 正确,但无济于事。 朋友建议我尝试将图像放在DIV中,因为我需要一直把图像放在一个单元格内的一个类中。这也是 没有任何区别。 我注意到在Safari中测试时,Activity实用程序 表示背景图片被禁止。也许这是一个 线索? 标准< IMG>也被放在文件中作为测试 以查看它们是否加载,这些都是远程可见的。所以它必须 与CSS有关。 我还W3验证了HTML和CSS,两者都是100%正常。 网站/地址可以在这里查看: www.redstudio/client/os/index.html www.redstudio/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. '' www.redstudio.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: www.redstudio/client/os/index.html www.redstudio/client/os/css/os.css Any help would be really appreciated, Cheers, Marc
推荐答案ma *** ********@gmail 写道: ma***********@gmail 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.
网站/地址可以在这里查看: www.redstudio/client/os/index.html页面要求: url(" /styles/ns-uc.css");
The page asks for: url("/styles/ns-uc.css");
www.redstudio/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 写道: ma***********@gmail wrote: >我在css文件中有一堆背景图像,在本地可见但是当我上传到远程服务器时,他们不会显示。 >I have a bunch of background-images in a css file that are visiblelocally, 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.
>网站/地址可以在这里查看: www.redstudio/client/os/index.html页面要求: url(" /styles/ns-uc.css");
The page asks for: url("/styles/ns-uc.css");
> www.redstudio/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! 试试这个: www.redstudio.au/client/os www.redstudio.au/client/os/css /os.css I''m sorry. I have been pointing to the site... eek! Try this instead: www.redstudio.au/client/os www.redstudio.au/client/os/css/os.css
更多推荐
CSS图像无法加载
发布评论