方法一:

<td> <a href="{$vo.show_img}" target="_blank"><img style="width: 40px;height: 40px" src="{$vo.show_img}" ></a></td>
把href和src里的地址换成图片地址就可以实现 

注:
href和src里的地址必须相同


方法二:

             <notempty name="vo.photo">
                            <li>
                                <img src="{$vo.photo}"
                                     style="height:36px;width: 36px;"
                                     onclick="parent.imagePreviewDialog(this.src);">
                            </li>
                     </notempty>

 

相关文章:

  • 2021-11-19
  • 2021-09-01
  • 2021-10-17
  • 2022-12-23
  • 2021-10-20
  • 2021-10-03
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2022-12-23
  • 2021-09-18
  • 2021-07-24
  • 2021-11-06
  • 2022-03-08
  • 2021-12-05
相关资源
相似解决方案