我刚刚为此耗费了两个小时。这非常令人沮丧。
文件夹名称为“adsq”的 URL(还有其他)——在 PHP 页面中看不到 css
文件。
这是两个相同的页面,区别仅在于文件夹名称:
http://chengyangxj.com/adsq/index2.php
http://chengyangxj.com/ads/index2.php
一个在工作,另一个 adsq
没有。它只是看不到 css
文件。
我在 3 台不同操作系统的电脑上试过。
这怎么可能?
最佳答案
如果您的 CSS 被 addblockers 阻止,请尝试在不包含“ads”一词的文件夹中使用绝对路径链接 CSS
例如
<link type="text/css" rel="stylesheet" href="/assets/css/mystyle.css">
关于php - URL 中的魔术文件夹名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16167606/