thymeleaf与前端显示
debugtoday
这个作者很懒,什么都没留下…
展开
-
Thymeleaf实现行内背景样式,补充行内样式属性
Thymeleaf实现行内背景样式,补充行内样式属性原创 2022-02-18 11:56:31 · 1965 阅读 · 0 评论 -
Thymeleaf实现list中指定条数循环
Thymeleaf实现list中指定条数循环原创 2022-02-17 10:59:59 · 2297 阅读 · 0 评论 -
thymeleaf实现透明滚动背景图
1、th:style="'background:transparent url(' + |*{resourcePath}images/background.jpg|+ ') repeat-y fixed 50% 0;'"th:style="'background:transparent url(' + |*{resourcePath}images/background.jpg|+ ') repeat-y fixed 50% 0;'"2、其中最关键字眼是transparent...原创 2022-01-07 11:30:26 · 570 阅读 · 0 评论 -
使用Thymeleaf设置导航栏选中后高亮
1、首先引入JS,用#thisNav接收后台标记的字段,获取该页面的id,根据class="a-first"取到需高亮导航的id(此id需要根据后台字段获取th:data-id="${nav.id}"),逻辑:若该页面id与选中的导航id一致thisValue == item.dataset.id,则在class="a-first"这个class中追加一个selected样式window.onload = function(){ var thisValue = document.querySe原创 2022-01-06 16:06:45 · 949 阅读 · 0 评论