我是百里香叶中的新手,尝试在百里香叶中添加.css文件,但无法加载css文件。 我的CSS文件在src /主/资源/模板/ style.css中无法在百里香叶中添加css文件
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>State 1 for Document</title>
</head>
<div th:if="${InstaPanState==1 and InstaPanStateStatus==0}">
<head lang="en">
<title>Instaveritas PAN Verification</title>
<link rel='stylesheet prefetch'
href='https://fonts.googleapis.com/css?family=Open+Sans:400,300'
th:href="@{https://fonts.googleapis.com/css?
family=Open+Sans:400,300}"/>
<link rel='stylesheet prefetch'
href='https://fonts.googleapis.com/css?family=Open+Sans:400,300'
th:href="@{https://fonts.googleapis.com/css?
family=Open+Sans:400,300}" />
<link type="text/css" rel="stylesheet" href="style.css"
th:href="@{/style.css}" media="all"/>
</head>
你会想发表您的配置d确切地描述什么不起作用 - 你是否有任何例外或者CSS没有出现在你的页面上?在生成的HTML上做一个查看源并发布。 – bphilipnyc
只是CSS不出现 – User120909