所以我已经对代码进行了三重检查,看不到错误。我什至尝试检查页面,但没有找到文件。如果您访问 zoeaa.com,您将看到只有 html 没有样式。我究竟做错了什么?
<head>
<meta name="descri
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/web/assets/mobirise-
icons/mobirise-icons.css">
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/tether/tether.min.css">
<link rel="stylesheet"
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/bootstrap/css/bootstrap-
grid.min.css">
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/bootstrap/css/bootstrap-
reboot.min.css">
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/dropdown/css/style.css">
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/theme/css/style.css">
<link rel="stylesheet"
href="/application/widgets/homepagesystem/assets/mobirise/css/mbr-
additional.css" type="text/css">
</head>
最佳答案
路径必须从这个 html 页面所在的位置开始,例如,如果我们称它为 index.html,则假设它在“mainFolder”中,为了工作,“application”文件夹也必须在“mainFolder”中".
如果它不是通过 ftp 检查从 css 文件到“index.html”所在位置的整个路径,那是正确的路径(不需要上面提到的域的完整 url,这不是问题) .
关于html - 外部样式表在我的网站上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52770765/