在一些瀏覽器而不是在IE以下工作:CSS懸停 - >更改Z-形象:在IE瀏覽器不工作
預期的結果:在默認情況下,藍格涵蓋的圖片...但是鼠標懸停在圖像的任何可見部分都會帶來整個圖像(在藍色格子前面)。
CSS:
.container { position:relative; }
.bigpic { position:relative;width:300px;height:300px; }
.bigpic img { z-index:2; position:relative; }
.bigpic img:hover { z-index:10; }
.shade { z-index:3;
position:absolute; top:20%;left:0;
width:100%; height:200px;
background-color:blue; }
HTML:
<table>
<tr>
<td class="container" >
<div class="bigpic">
<img src="http://s8.postimg.org/xhqgtehlh/sample.jpg" />
</div>
<div class="shade"></div>
</td>
</tr>
</table>
任何想法?建議?試圖遠離Javascript這一點。
謝謝!
作品在IE10 .. –
IE的哪個版本測試?你是否也能看到這個貼子的提琴問題? – PSL
對我的作品在IE9 – frozenkoi