具有th:utext属性的Thymeleaf,无法为其指定specfic属性 [英] Thymeleaf with th:utext attribute ,not able to assign specfic attribute to it
本文介绍了具有th:utext属性的Thymeleaf,无法为其指定specfic属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Thymeleaf作为模板引擎。
我有一个包含属性的html:utext
I am using Thymeleaf as the templet engine.
I have a html which contains attribute th:utext
<div th:utext="*{categoryBannarPageEnrty.value}"></div> with values as html tags as
<p id="logo"><img src="./cmsstatic/main_soho_logo01.jpg"/></p>
<p id="title"><img src="./cmsstatic/main_soho_title01.jpg" /></p>
<p id="text">Some text</p>
<p id="link"><a href="/">Shop</a></p>
and accordingly being displayed on UI.
Now how can i assign the p tag with "logo" id to the th:utext as i
do not want the other things to be displayed on my UI.
推荐答案
这篇关于具有th:utext属性的Thymeleaf,无法为其指定specfic属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文