我正在尝试模拟一个浮动模式的盒子类型的东西,但是在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>
它在火狐/Chrome等浏览器中运行良好,但IE9不能显示阴影。我可以将其更改为内嵌阴影,它看起来就像它应该出现的那样,但外部阴影继续躲避我。
有没有人能对这个阴影问题有所了解?
https://stackoverflow.com/questions/5617455
复制相似问题