javascript - 无法加载资源 : the server responded with a status of 404

标签 javascript html css

我的 codeSearch.html 文件中的 CSS 和 JS 文件存在链接问题。我在stackoverflow中看到了一些答案,但我仍然不知道我哪里错了。

这是我的代码:
link code

我的目录
my directory

最佳答案

你的 DTD 类型,如果不是 !DOYTYPE html,你应该将 type 属性添加到你的链接标签中

关于javascript - 无法加载资源 : the server responded with a status of 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39091585/

相关文章:

html - 为什么 AngularJS ng-view 在本地不起作用?

javascript - 使用 javascript 函数对 Div 进行编号

javascript - 如何使用 JavaScript 将大量数字格式化为字符串

JavaScript 无法在 azure ad b2c 自定义注册页面中运行

javascript - 在没有 $routeProvider 和 $location 的情况下使用 angularjs?

css - Flexbox 在不改变子元素宽度的情况下限制每行的元素

html - 将 div 强制设置为 iframe 旁边的 "float"?

javascript - 在用户不刷新时更新 Web 应用程序

javascript - 动态添加颜色到添加的文本

html - 如何制作半页 Bootstrap 轮播?