<td <#if stu.name=="小明">style="background-color:cornflowerblue"</#if>>${stu.name}</td>

 





金额大于300加背景颜色

大于号 和后面的标签结束 这两个区分不开谁是大于号 所以就报错了。

把大于号改成gt

<td <#if stu.money gt 300>style="background-color: cornflowerblue"</#if>${stu.money}</td>

 




大于号的判断在括号里面括起来

 <td <#if (stu.money gt 300)>style="background-color: cornflowerblue"</#if>${stu.money}</td>

 



 



 

相关文章:

  • 2022-01-15
  • 2022-01-09
  • 2021-06-02
  • 2021-06-15
  • 2022-01-07
  • 2021-12-23
  • 2021-09-22
  • 2022-02-21
猜你喜欢
  • 2021-09-17
  • 2022-01-18
  • 2021-11-27
  • 2021-11-24
  • 2021-11-03
  • 2021-06-16
  • 2021-08-16
相关资源
相似解决方案