我的图片在前面,文字在后面。我想选择后面的文字。这适用于 chrome 和 firefox。我如何使它也能在 IE 中工作。
<div id="parent-street-view">
<div id="map_canvas">This is supposed to be visible and selectable</div>
<img class="overlay-pollution"
src="http://www.lorempixel.com/400/400" />
</div>
<style>
@media print {
.gmnoprint {
display: none;
}
}
@media screen {
.gmnoscreen {
display: none;
}
}
#parent-street-view {
position: relative;
}
#map_canvas {
position: absolute !important;
width: 500px;
height: 400px;
background-color: rgb(229, 227, 223);
overflow: hidden;
-webkit-transform: translateZ(0);
z-index: 0;
}
#parent-street-view .overlay-pollution {
width: 500px;
height: 400px;
position: absolute;
z-index: 100;
opacity: 0.5;
pointer-events:none;
}
</style>
http://jsfiddle.net/G5BeU/2/ 如何在 IE 中完成这项工作?