我正在尝试模拟浮动模式框类型的东西,但IE9及其框阴影实现有问题.
以下是我正在使用的可以复制问题的代码的摘要:
<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>
Run Code Online (Sandbox Code Playgroud)
它在Firefox/Chrome等中运行良好,但IE9不显示阴影.我可以把它改成一个插入的阴影,它看起来应该如此,但外面的阴影继续躲避我.
那里的任何人能够解释这个影子问题吗?