Html CSS3模式框会在它之后隐藏内容吗?

Html CSS3模式框会在它之后隐藏内容吗?,html,css,modal-window,Html,Css,Modal Window,所以我不知道为什么它会掩盖它,但当我去注销时,你会看到它显示在背景中。只有当我打开“标志退出”模式窗口时,它才会显示 <!DOCTYPE html> <html> <head> <title>SVHS Library Sign In/Out</title> <meta name="SVHS-sign_in/out v1.0" content="form"> <link rel="stylesh

所以我不知道为什么它会掩盖它,但当我去注销时,你会看到它显示在背景中。只有当我打开“标志退出”模式窗口时,它才会显示

<!DOCTYPE html>
<html>

<head>
    <title>SVHS Library Sign In/Out</title>
    <meta name="SVHS-sign_in/out v1.0" content="form">
    <link rel="stylesheet" href="_css/main.css">
    <link rel="stylesheet" href="_css/modal.css">
    <style>
        body {
            width: 700px;
            margin-left: auto;
            margin-right: auto;
            }
    </style>
</head>

<body>
    <header>
        <h1>Sign In/Out</h1>
    </header>

    <!-- SIGN IN MODAL ------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------->
    <a href="#openModal1">Sign In</a>

    <div id="openModal1" class="modalDialog">
        <div>
            <a href="#close" title="Close" class="close">X</a>
            <h2>Sign In</h2>
            <p>
                Please fill out and click sign in.
            </p>
            <form action=".php" method="post" class="">
                First Name: 
                <input type="text" name="fname"><br>
                Last Name:
                <input type="text" name="lname"><br>
                <input type="radio" name="reason" value="check in/out book">Check In/Out Book<br>
                <input type="radio" name="reason" value="use computer">Use Computer<br>
                <input type="radio" name="reason" value="other">Other<br>
                <input type="submit" value="Sign In">
            </form>
        </div>
    </div>
    <!-- SIGN OUT MODAL -------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------->
    <a href="#openModal2">Sign Out</a>

    <div id="openModal2" class="modalDialog">
        <div>
            <a href="#close" title="Close" class="close">X</a>
            <p>
                Please fill out and click sign out.
            </p>
            <form action=".php" method="post" class="">
                First Name: 
                <input type="text" name="fname"><br>
                Last Name:
                <input type="text" name="lname"><br>
                <input type="submit" value="Sign Out">
            </form>
        </div>

    <!-- FOOTER --------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------->
    <footer>
        <nav class="nav_footer">
        </nav>
        <div class="legal">
            <p> 
                This is the footer.
            </p>
        </div>
    </footer>

    <!-- Scripts -->
    <script type="text/javascript" src="_scripts/java.js"></script>
</body>
</html>

===============CSS======================
.modalDialog {
    position: fixed;
    font-family: Helvetica, Arial, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    opacity:0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    }
.modalDialog:target {
    opacity:1;
    pointer-events: auto;
    }
.modalDialog > div {
    width: 400px;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #fff;
    background: -moz-linear-gradient(#fff, #999);
    background: -webkit-linear-gradient(#fff, #999);
    background: -o-linear-gradient(#fff, #999);
    }
.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    -moz-box-shadow: 1px 1px 3px #000;
    -webkit-box-shadow: 1px 1px 3px #000;
    box-shadow: 1px 1px 3px #000;
    }
.close:hover { background: #00d9ff; }

SVHS图书馆登录/注销
身体{
宽度:700px;
左边距:自动;
右边距:自动;
}
登录/退出
登录

请填写并单击“登录”。

名字:
姓氏:
签入/签出簿
使用电脑
其他
请填写并单击“注销”。

名字:
姓氏:
这是页脚。

===================CSS====================== 莫达尔迪亚洛先生{ 位置:固定; 字体系列:Helvetica、Arial、无衬线字体; 排名:0; 右:0; 底部:0; 左:0; 背景:rgba(0,0,0,0.8); z指数:99999; 不透明度:0; -webkit过渡:不透明度400ms缓进; -moz过渡:不透明度400ms缓进; 过渡:不透明度400ms缓进; 指针事件:无; } .modalDialog:目标{ 不透明度:1; 指针事件:自动; } .modalDialog>div{ 宽度:400px; 位置:相对位置; 利润率:10%自动; 填充:5px20px 13px 20px; 边界半径:10px; 背景:#fff; 背景:-moz线性梯度(#fff,#999); 背景:-webkit线性梯度(#fff,#999); 背景:-o-线性梯度(#fff,#999); } .结束{ 背景:#606061; 颜色:#FFFFFF; 线高:25px; 位置:绝对位置; 右:-12px; 文本对齐:居中; 顶部:-10px; 宽度:24px; 文字装饰:无; 字体大小:粗体; -webkit边界半径:12px; -moz边界半径:12px; 边界半径:12px; -莫兹盒阴影:1px 1px 3px#000; -网络工具包盒阴影:1px 1px 3px#000; 盒影:1px 1px 3px#000; } .close:悬停{背景:#00d9ff;}
我希望您讨论的是页脚显示

这只是因为您的signout modal的div没有完全关闭。。因此,当出现注销模式时,将显示页脚

这是

以下是您需要更改的内容:

<div id="openModal2" class="modalDialog">
    <div>
        <a href="#close" title="Close" class="close">X</a>
        <p>
            Please fill out and click sign out.
        </p>
        <form action=".php" method="post" class="">
            First Name: 
            <input type="text" name="fname"><br>
            Last Name:
            <input type="text" name="lname"><br>
            <input type="submit" value="Sign Out">
        </form>
    </div>
                </div>


请填写并单击“注销”。

名字:
姓氏:

JU在末尾再添加一个div,如我上面所示…

涵盖了。。请编辑您的问题并简要解释您的问题。