部分代码:::
el.addEventListener("mouseenter", function() {
            var pos = el.getBoundingClientRect()
            var currenLeft = pos.left,
                currenTop = pos.top,
                currenWidth = pos.width,
                currenHeight = pos.height位置相对窗口来定位我觉得会好一些。如果存在table嵌套table的情况。给嵌套的table的tr上添加你这个方法。位置是有问题的哈。