鼠标滚轮改变图片大小的示例代码 src="http://files.jb51.net/file_images/article/201311/20131120101711.png" style="max-width:90%" onmousewheel='return onWheelZoom(this)'>
<script> <BR>function onWheelZoom(obj){ <BR> zoom = parseFloat(obj.style.zoom); <BR> tZoom = zoom + (event.wheelDelta>0 ? 0.05 : -0.05); <BR> if( tZoom > 1 || tZoom<0.1 ) return true; <BR> obj.style.zoom=tZoom; <BR> return false; <BR>} <BR></script>
java怎么学习?java怎么入门?java在哪学?java怎么学才快?不用担心,这里为大家提供了java速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号