小编Aro*_*win的帖子

IE9上的box-shadow无法使用正确的CSS呈现,适用于Firefox,Chrome

我正在尝试模拟浮动模式框类型的东西,但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不显示阴影.我可以把它改成一个插入的阴影,它看起来应该如此,但外面的阴影继续躲避我.

那里的任何人能够解释这个影子问题吗?

html css css3 internet-explorer-9

71
推荐指数
2
解决办法
5万
查看次数

标签 统计

css ×1

css3 ×1

html ×1

internet-explorer-9 ×1