图片大小用鼠标滚轮控制代码:
<img src='http://www.blueidea.com/img/common/logo.gif' onMouseWheel="this.style.zoom*= Math.pow(.9,Math.abs(event.wheelDelta)/event.wheelDelta);" onClick="this.style.zoom=1;" style="zoom=1;" />
博客给出了用鼠标滚轮控制图片大小的代码。通过该代码,可使用鼠标滚轮调整图片大小,点击图片还能恢复原始大小。
图片大小用鼠标滚轮控制代码:
<img src='http://www.blueidea.com/img/common/logo.gif' onMouseWheel="this.style.zoom*= Math.pow(.9,Math.abs(event.wheelDelta)/event.wheelDelta);" onClick="this.style.zoom=1;" style="zoom=1;" />
6268

被折叠的 条评论
为什么被折叠?
