仿淘宝提示窗口html加js 仿淘宝提示窗口 function getPosXY(a, offset) { var p = offset ? offset.slice(0) : [0,0],tn; while (a) { tn = a.tagName.toUpperCase(); p[0] += a.offsetLeft - (