问题描述
下面是我的文件结构
在我的index.html中,我尝试按如下方式引用引导程序
from module import Class
但是当页面在localhost上加载时,我在控制台日志中看到以下内容。
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css" crossorigin="anonymous">
我也尝试过
localhost/:1 Refused to apply style from 'http://localhost:3001/bootstrap/css/bootstrap.css' because its MIME type ('text/html') is not a supported stylesheet MIME type,and strict MIME checking is enabled.
或
<link rel="stylesheet" href="../bootstrap/css/bootstrap.css" crossorigin="anonymous">
或
<link rel="stylesheet" href="/bootstrap/css/bootstrap.css" crossorigin="anonymous">
我还首先尝试了type =“ text / css”和type =“ css”的所有组合
错误与type =“ text / css”相同,并且与type =“ css”错误一起出现,但无法使用任何引导类。
尝试使用和不使用crossorigin =“ anonymous”
已经发布了类似的问题,但是相同的答案不起作用,请让我知道我在想什么。
下面是我的css文件夹。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)