zoukankan      html  css  js  c++  java
  • 遮罩的使用

    页面Div:

    <div class="first">
                <!-- 弹出窗口 -->
                <div id="fullbg"></div>
                <div id="dialog">
                    <p class="close"><a href="javascript:void(0);" id="close">关闭</a></p>
                    <div style="margin-left: 30px;margin-right: 30px">
                        <table style="font-size: 18px;color: black;">
                            <tr>
                                <td style="text-align:center" align="center" >
                               
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>

    CSS:

    .first{

        _display: inline;
        float: left;
        margin-right: 10px;
        overflow: hidden;

        950px;
        margin-right: 0px;
        margin-bottom: 5px;
    }

    .close {
    text-align:right;
    padding-right:10px;
    }

    JS:

    function showBg() {
                $("#fullbg").css({
                    height:$(document).height(),
                    $(document).width(),
                    display:"block"
                });
                $("#dialog").show();
            };
            
            $("#close").click(
                    // 弹出支付验证窗口
                    function() {
                        $("#fullbg").css({
                            height:$(document).height(),
                            $(document).width(),
                            display:"none"
                        });
                        $("#dialog").hide();
                    });

  • 相关阅读:
    插入排序(C语言版)
    2015蓝桥杯分机号(C++C组)
    2015蓝桥杯二项式
    2016蓝桥杯报纸页数(C++C组)
    区块链
    C语言学生管理系统完善版
    数据结构队列
    C语言数据结构队列
    C语言数据结构栈
    javascript 事件
  • 原文地址:https://www.cnblogs.com/wangkang0320/p/6508567.html
Copyright © 2011-2022 走看看