Home  >  Article  >  Web Front-end  >  Jquery 方块随着鼠标所在的区域而放大_jquery

Jquery 方块随着鼠标所在的区域而放大_jquery

WBOY
WBOYOriginal
2016-05-16 18:26:151100browse

效果如下图:
Jquery 方块随着鼠标所在的区域而放大_jquery
实现代码:运行后F5刷新下

'); } //绑定dockItem函数 $(".dock div").bind("mouseover",function(event){ var w=$(this).width(); var h=$(this).height(); var offset=$(this).offset(); onmouseItemout(offset.top); }); //处理子对象样式 function onmouseItemout(top){ for(var i=0;i
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn