使用elementFromPoint方法;思路是,先获取鼠标所在的位置,然后调用此方法即可,兼容性还可以,ie6都支持;var ele = document.elementFromPoint(x,y);