首页 > 解决方案 > 加载资源失败:css js

问题描述

我刚刚做了我的第一页,它在本地主机上看起来和工作得很好。 本地主机视图

今天我把它上传到godaddy托管并放在根页面上。

面板

但它在实时网页上并不好。

网页 - 在线

当我使用谷歌开发工具检查时,我注意到 css 和 JS 文件没有加载。

铬开发者

我怀疑我的 css 链接可能是错误的,但我认为它们没问题。

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="An abstract acrylic art page">

        <link rel="stylesheet" type="text/css" href="vendors/css/normalize.css">
        <link rel="stylesheet" type="text/css" href="vendors/css/grid.css">
        <link rel="stylesheet" type="text/css" href="vendors/css/ionicons.min.css">
        <link rel="stylesheet" type="text/css" href="vendors/css/animate.css">
        <link rel="stylesheet" type="text/css" href="Resources/css/css.css">
        <link rel="stylesheet" type="text/css" href="resources/css/queries.css">
        <link rel="preconnect" href="https://fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400&display=swap" rel="stylesheet">

如果你能帮助我,我会很高兴。谢谢

标签: cssweb

解决方案


推荐阅读