test.html
图像上有 3 个“层”
<img id=image width=200 height=200 src=http://images.all-free-download.com/images/graphicmedium/water_entertainment_motion_picture_165876.jpg>
<div id=dRed style="position:absolute; border: 2px solid red;
left:50px; top:50px; width:100px; height:100px"></div>
<div id=dGreen style="position:absolute; border: 2px solid green;
left:70px; top:70px; width:60px; height:60px"></div>
<div id=dBlue style="position:absolute; border: 2px solid blue;
left:90px; top:90px; width:20px; height:20px"></div>
document.elementFromPoint(100,100) 返回 dBlue 但用户实际上看到了图像。
是否可以确定图像?