【发布时间】:2013-10-17 21:53:19
【问题描述】:
在 html 图片和 gif 中设置方式相同。所以我在百里香中使用同样的方法
在thymeleaf中将图片设置为
<img th:attr="src=@{${ball.png}} , title=#{background}, alt=#{background}" style="width: 150px; height: 150px;" />
与设置为的gif图像相同
<img th:attr="src=@{${run.gif}} , title=#{background}, alt=#{background}" style="width: 150px; height: 150px;" />
图像会在那里显示,但 gif 图像不会在那里显示
我不知道为什么会这样。
如果你知道答案,请在这里分享。
【问题讨论】: