我想要打印"已经为DL验证生成了Ticket:InstaveritasType的价值"在一条线上。我能够从模型中获取值,但我无法以单行打印。
这是我的代码:
<h1><font color="#fa1801" face="Algerian" size="5"><strong>Ticket has
been generated for DL verification : <p
th:text="${InstaveritasType}"></p></strong> </font></h1>
答案 0 :(得分:1)
已为DL验证生成故障单:<span th:inline="text">[[${InstaveritasType}]]</span>
或使用<span>
标记代替<p>
!
<h1><font color="#fa1801" face="Algerian" size="5"><strong>Ticket has
been generated for DL verification : <span
th:text="${InstaveritasType}"></span></strong> </font></h1>