日期:2014-05-17  浏览次数:20693 次

求众大神们帮个忙。。
鼠标悬停的时候图片放大效果怎么做呢。

------解决方案--------------------
HTML code
<img id='image' src='http://avatar.profile.csdn.net/C/D/B/2_woshior198.jpg' width='100'/>
<script>
var img = document.getElementById('image');
img.onmouseover = function(){this.width='200'}
img.onmouseout = function(){this.width='100'}
</script>

------解决方案--------------------
探讨

HTML code
<img id='image' src='http://avatar.profile.csdn.net/C/D/B/2_woshior198.jpg' width='100'/>
<script>
var img = document.getElementById('image');
img.onmouseover = function(){this.width='200'……

------解决方案--------------------
探讨

引用:

HTML code
<img id='image' src='http://avatar.profile.csdn.net/C/D/B/2_woshior198.jpg' width='100'/>
<script>
var img = document.getElementById('image');
img.onmouseover =……
这样做图片不会失真?!

------解决方案--------------------
探讨

引用:

HTML code
<img id='image' src='http://avatar.profile.csdn.net/C/D/B/2_woshior198.jpg' width='100'/>
<script>
var img = document.getElementById('image');
img.onmouseover =……