404问题:CSS问题?

编程入门 行业动态 更新时间:2024-10-19 04:25:49
本文介绍了404问题:CSS问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我创建了一个404页面,在大多数情况下似乎运行良好,例如: http:/ /www.psi.uk/bad_page 然而有人指出,当虚假页面出现在子文件夹中时,所有CSS似乎都丢失了。例如: www.psi.uk/links/bad_page 有没有人有任何想法? 在此先感谢, Dave PS - 对于验证错误感到抱歉!

解决方案

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

展开 | 选择 | 换行 | 行号

好想法,谢谢Atli! 我不认为有人知道DW是否知道他们是否有替换所有功能?或者为每个子文件夹实际创建一个css路由是否更容易?! 再次感谢, Dave

如果你将所有文件中的链接更改为我发布的绝对URL,他们都会加载相同的CSS文件,无论它们在文件结构中的位置。 In Dreamweaver,您可以执行编辑 - >查找和替换,更改查找和查找。下拉到文件夹,选择网络的根文件夹,将旧链接放在查找中,将新链接放在替换中,然后执行全部替换...应该处理所有问题链接。

Hi all, I''ve created a 404 page which seemed to be working well in most circumstances, for example: www.p-s-i.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: www.p-s-i.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问题?

本文发布于:2023-11-11 23:05:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579794.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:CSS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!