摘要: <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--><!--[if IE]> 所有的IE可识别 <![endif]--><!--[if IE 6]> 仅IE6可识别 <![endif]--><!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]--><!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]--><!--[if IE 7]> 仅IE7 阅读全文
posted @ 2013-02-21 15:03 winenr123 阅读(165) 评论(0) 推荐(0) 编辑
摘要: document.elementFromPoint(x,y)方法可以获取到鼠标移动中当前光标所在的元素,他接受2个参数,鼠标的X坐标和Y坐标document.onmousemove=function(event){ var e=event?event:window.event; var x=e.clientX; var y=e.clientY; var obj=document.elementFromPoint(x,y); console.log(obj.nodeName);} 阅读全文
posted @ 2013-02-21 10:29 winenr123 阅读(819) 评论(0) 推荐(0) 编辑