thymeleaf 设置display样式

使用th:style标签:

th:style="'display:' + @{(${value} ? 'none' : 'inline-block')} + ''"

其中value是后台返回的值

posted @ 2018-11-10 17:51  花拾夕  阅读(10277)  评论(0)    收藏  举报