在一些浏览器而不是在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