404问题:CSS问题? [英] 404 issue: a CSS problem?

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

问题描述

大家好,


我创建了一个404页面,在大多数情况下似乎运行良好,例如:

http:/ /www.psi.org.uk/bad_page


然而有人指出,当虚假页面出现在子文件夹中时,所有CSS似乎都丢失了。例如:

http://www.psi.org.uk/links/bad_page


有没有人有任何想法?


在此先感谢,

Dave

PS - 对于验证错误感到抱歉!

解决方案

< blockquote>您好。


您正在使用相对链接加载您的CSS文件。

展开 | 选择 | 换行 | 行号


好想法,谢谢Atli!


我不认为有人知道DW是否知道他们是否有替换所有功能?或者为每个子文件夹实际创建一个css路由是否更容易?!


再次感谢,

Dave


< blockquote>如果你将所有文件中的链接更改为我发布的绝对URL,他们都会加载相同的CSS文件,无论它们在文件结构中的位置。


In Dreamweaver,您可以执行编辑 - >查找和替换,更改查找和查找。下拉到文件夹,选择网络的根文件夹,将旧链接放在查找中,将新链接放在替换中,然后执行全部替换...应该处理所有问题链接。


Hi all,

I''ve created a 404 page which seemed to be working well in most circumstances, for example:
http://www.p-s-i.org.uk/bad_page

However it was pointed out to be when the faux page appeared in a sub-folder, all CSS seemed to be lost. For example:
http://www.p-s-i.org.uk/links/bad_page

Does anyone have any ideas?

Thanks in advance,
Dave
PS - sorry for the validation errors!

解决方案

Hi.

You are using a relative link to load your CSS file.

Expand|Select|Wrap|Line Numbers


Good thinking, thanks Atli!

I don''t suppose anyone knows much about DW to know whether they have a replace all function? Or whether it would be easier to actually create a css route for each subfolder?!

Thanks again,
Dave


If you change the link in all of your files to the absolute URL I posted they would all load the same CSS file, no matter where they are in the file structure.

In Dreamweaver, you can do "Edit->Find and Replace", change the "Find in" dropdown to "Folder", select the root folder for your web, put the old link on "Find", your new link in "Replace", and do "Replace all"... that should take care of all the links.


这篇关于404问题:CSS问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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