前端实现大小图交互

html 代码

<td title="$!esc.html(<img src='$_banner.imageUrl'>)">$!esc.html<img class="bigImg"   src="$_banner.imageUrl" width="20px" height="20px" ></td>



.css代码

<style>.bigImg:hover{position: absolute;width: 300px;height: auto;z-index: 1;}</style>

效果:


猜你喜欢

转载自blog.csdn.net/AVGworkld/article/details/70184808