我想模拟浮动模式框类型的东西,但有一个问题与IE9和它的盒子阴影实现。在IE9盒阴影不呈现使用正确的CSS,适用于Firefox,Chrome
下面是我使用的可以复制的问题代码的一个总结:
<html>
<head>
<title>Sample page</title>
<style>
.content-holder {
border-collapse: collapse;
}
.back {
background-color: #a8c0ff;
padding: 100px;
}
.inner {
background-color: #fff;
text-align: center;
padding: 50px;
box-shadow: 0px 0px 20px #000;
}
</style>
</head>
<body>
<table class="content-holder">
<tr>
<td>
<div class="back">
<div class="inner">
<h2>Heading</h2>
<p class="subtext">Some text here</p>
<p>More text</p>
<a class="button" href="#">A button</a>
</div>
</div>
</td>
</tr>
</table>
</body>
它工作正常,在Firefox/Chrome浏览器等,但IE9不会显示阴影。我可以将它改变成一个嵌入的阴影,它看起来应该是这样,但外面的阴影仍然不能逃避我。
任何人都可以在这个阴影问题上揭露一些光?
刚刚有同样的问题[插入拳头震动] – 2013-01-21 10:01:16