CSS弹出窗口在Chrome上不起作用

时间:2013-05-24 09:07:19

标签: php javascript css google-chrome popup

您好,我会在网页上粘贴一些代码,因为我需要Facebook Fanpage订阅窗口

继承人的代码

<style>
    body {
        margin: 0;
        padding: 0;
    }
    #BlackBOX {
        background: rgba(0, 0, 0, 0.6);
        display: block;
        position: absolute;
        z-index: 99;
        width: 100%;
        height: 100%;
        width:100%;
        /* Firefox */
        display:-moz-box;
        -moz-box-pack:center;
        -moz-box-align:center;
        /* Safari and Chrome */
        display:-webkit-box;
        -webkit-box-pack:center;
        -webkit-box-align:center;
        /* W3C */
        display:box;
        box-pack:center;
        box-align:center;
    }
    #PopUp {
        background: #fff;
        width: 400px;
        color: #000;
    }
</style>
</head>
<body>
    <div id='BlackBOX'>
        <div id='PopUp'>This is a CSS Popup that can be positioned anywhere you want on the page and can contain any test and images you want.
            <br />
            <div style='text-align: right;'><a onmouseover='this.style.cursor="pointer" ' style='font-size: 12px;' onfocus='this.blur();' onclick="document.getElementById('BlackBOX').style.display = 'none' "><span style="text-decoration: underline;">Close</span></a>
            </div>
        </div>
    </div>

并且所有功能在Firefox Internet Explorer上运行良好,但Chrome无效:(有人知道为什么吗?

请帮助我,我真的需要100%正常工作的POPUP

0 个答案:

没有答案