码迷,mamicode.com
首页 > Web开发 > 详细

thymeleaf 引入js css 无效

时间:2018-01-22 19:21:03      阅读:413      评论:0      收藏:0      [点我收藏+]

标签:show   nbsp   type   link   lin   template   text   ati   body   

     <link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
    <script type="text/javascript"   th:src="@{/js/jquery.min.js}"></script>
    <script type="text/javascript"   th:src="@{/js/global.js}"></script>
    <script type="text/javascript"   th:src="@{/js/slide_show.js}"></script>

首先link  和  script  如上图写,

第二就是

1. css 那些要放在static下


2,模板放在templates下 

 

技术分享图片

 

thymeleaf 引入js css 无效

标签:show   nbsp   type   link   lin   template   text   ati   body   

原文地址:https://www.cnblogs.com/kaka666/p/8330308.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!