图片img行内加上onclick="zoom(this, this.src, 0, 0, 0)"
如- <img src="{$doc['pic']}" onclick="zoom(this, this.src, 0, 0, 0)"/>
复制代码 CSS- .zoominner { padding: 5px 10px 10px; background:#fff; text-align: left; }
- .zoominner p { padding: 8px 0; }
- .zoominner p a { float: left; margin-left: 10px; width: 17px; height: 17px; background: url({IMGDIR}/imgzoom_tb.gif) no-repeat 0 0; line-height: 100px; overflow: hidden; }
- .zoominner p a:hover { background-position: 0 -39px; }
- .zoominner p a.imgadjust { background-position: -40px 0; }
- .zoominner p a.imgadjust:hover { background-position: -40px -39px; }
- .zoominner p a.imgclose { background-position: -80px 0; }
- .zoominner p a.imgclose:hover { background-position: -80px -39px; }
- .zimg_c { position: relative; }
- .zimg_prev, .zimg_next { display: block; position: absolute; width: 80px; height: 100%; background: url({IMGDIR}/pic-prev.png) no-repeat 0 -100px; cursor: pointer; }
- .zimg_next { right: 10px; background-image: url({IMGDIR}/pic-next.png); background-position: 100% -100px; }
- .zimg_c img { margin: 0 auto; }
- .zimg_p strong { display: none; }
复制代码 |