大家好, 我创建了一个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 NumbersGood 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, DaveIf 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问题?
发布评论