方法一:
<td> <a href="{$vo.show_img}" target="_blank"><img style=" 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; 36px;" onclick="parent.imagePreviewDialog(this.src);"> </li> </notempty>