Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML文件可以';找不到引导CSS文件_Html_Css_Spring Boot_Bootstrap 4 - Fatal编程技术网

HTML文件可以';找不到引导CSS文件

HTML文件可以';找不到引导CSS文件,html,css,spring-boot,bootstrap-4,Html,Css,Spring Boot,Bootstrap 4,我目前正在逐字学习教程,但由于某些原因,我的html没有检测到我的css文件。我还尝试使用完整的文件路径,但这也没有影响样式 这是我与spring boot和bootstrap的遭遇。您是否尝试过使用/css/*.min.css?如果您的“css”文件夹与.html文件处于同一级别,则此功能应该可以使用。如果您安装了节点模块,则您的链接应该这样定义以访问引导css文件 <link rel="stylesheet" href="node_modules/boo

我目前正在逐字学习教程,但由于某些原因,我的html没有检测到我的css文件。我还尝试使用完整的文件路径,但这也没有影响样式


这是我与spring boot和bootstrap的遭遇。

您是否尝试过使用
/css/*.min.css
?如果您的“css”文件夹与.html文件处于同一级别,则此功能应该可以使用。

如果您安装了节点模块,则您的链接应该这样定义以访问引导css文件

 <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">


或者,您可以参考此网站了解更多信息“https://getbootstrap.com/docs/5.0/getting-started/introduction/“

原来这是我的IDE中的一个bug,我刚切换到IntelliJ。

你的链接看起来不错。如果不查看您的文件结构,就无法提供更多建议。添加文件结构的屏幕截图。