blazeZzz

js代码:

function bb_img_onmousewheel(e, o) {
    var zoom = parseInt(o.style.zoom, 10) || 100;
    zoom += event.wheelDelta / 12;
    if (zoom > 0) o.style.zoom = zoom + \'%\';
    return false;
}

图片html标签:

<img onmousedown="if(self.startMove)startMove(this,event)" onmousewheel="return bb_img_onmousewheel(event,this)" style="cursor: move; zoom: 80%;" src="" width="600px" />

 

分类:

技术点:

相关文章:

  • 2022-01-02
  • 2022-01-02
  • 2021-12-23
  • 2021-09-28
  • 2022-02-02
  • 2021-12-10
猜你喜欢
  • 2021-10-23
  • 2021-11-01
  • 2021-12-18
  • 2021-12-31
  • 2021-12-28
相关资源
相似解决方案