0
我想提出一個表中的文本&圖標,像這樣的同一個小區,但似乎因爲只有文本顯示thymeleaf:文本和圖標在同一個TD
<td class="col_name" th:text="${mareSuperiora.linkQuality}" >GOOD
<span th:if="${mareSuperiora.linkQuality == 'EXCELLENT'}" >
<i class="fa fa-signal fa-2x" style="color:#009933; text-align: center;" aria-hidden="true"></i>
</span>
<span th:if="${mareSuperiora.linkQuality == 'GOOD'}" >
<i class="fa fa-signal fa-2x" style="color:#0066cc; text-align: center;" aria-hidden="true"></i>
</span>
<span th:if="${mareSuperiora.linkQuality == 'AVERAGE'}" >
<i class="fa fa-signal fa-2x" style="color:#ff9900; text-align: center;" aria-hidden="true"></i>
</span>
<span th:if="${mareSuperiora.linkQuality == 'LIMIT'}" >
<i class="fa fa-signal fa-2x" style="color:#ff5050; text-align: center;" aria-hidden="true"></i>
</span>
</td><!-- NAME -->
你確定你重新包括字體真棒庫嗎? –
是的,我在模板的另一部分使用它 –