thymeleaf标签 th:attr的使用

通过th:attr设置html标签样式:
  th:attr="style='background:url('+${l.qiniuIcon}+');background-size:cover;'"

通过th:attr设置html标签id:
  th:attr="id='id'+${l.id}"

原文地址:https://www.cnblogs.com/shareze/p/4054372.html