js图片拖拽查看并滑动鼠标可放大缩小,具体见如下代码:
html代码:
<style type="text/css">
body{background-color:#555;color:#fff;}
a img{border:none;}
#imageView_container{border:2px solid #000;margin:0 auto;}
#imageView_container.iv-loading{border:2px solid #ff6600;}
</style>
</head>
<body>
<div id="imageView_container">
<img src="images/sad2.jpg" rel="images/sad2.jpg" alt="" onmousewheel="return bbimg(this)"/>
</div>