前端thymeleaf模板引擎
走在It前端的小菇凉
这个作者很懒,什么都没留下…
展开
-
Thymeleaf 模板语言th:style添加background样式
初始样式设置:<div class="imgbox" th:style="background:url('thumbnai.jpg') no-repeat center center; background-size: auto 100%;"></div>用后台返回的缩略图,代码如下:<div class="imgbox" th:style="'background:url(' + ${olist.thumbnail}+') no-repeat center cent原创 2020-07-10 11:31:37 · 12478 阅读 · 7 评论 -
关于SpringBoot Thymeleaf 模板语言使用小总结
为了不经常鬼畜, 避免来回纠结SpringBoot Thymeleaf语法,总结一下常用语法方便之后自己查询使用。模板标志: th:js如果有Thymeleaf模板语法,一定在“script”标签中加入识别 th:inline=“javascript”,即: <script th:inline="javascript"> let aRoomTypeList =...原创 2020-04-10 17:41:28 · 497 阅读 · 0 评论