popup.html 2.47 KB
<style>
    .xc_poppup-frame{

        z-index: 200;
        display: none;

    }
    .xc_poppup-frame .men{
        width: 100%;
        height: 100%;
         position: fixed;
        top: 0rem;
       left: 0rem;
        background: rgba(0,0,0,0.4);
        z-index: 9999;
    }
    .xc_poppup-frame .big-frame{
        position: fixed;
        width:87%;
        height: 4.5rem;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 99999;
    }
    .xc_poppup-frame .big-frame .poppup{

        width:100%;
        height: 3.4rem;
        border-radius:0.1rem;
        border: 1px solid #8faecd;

        background: #fff;

    }
    .xc_poppup-frame .big-frame .poppup .titles{
        width: 100%;
        height: 30%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size:0.35rem;
    }
    .xc_poppup-frame .big-frame .poppup .activity-title{
        width: 92%;
        margin: auto;
        font-size:0.3rem;
    }
    .xc_poppup-frame .big-frame .poppup .activity-explain{
        width: 92%;
        margin: auto;
        height: 60%;
        overflow-y:scroll;
        overflow-x: hidden;
        font-size: 0.25rem;
        color:#9f9f9f;
    }
    .xc_poppup-frame .shut-frame{
        width: 100%;
        height: 0.3rem;
        line-height: 0.3rem;
        margin-top: 0.3rem;
    }
    .xc_poppup-frame .shut-frame .shut{
        margin: auto;
        width: 0.5rem;
        height: 0.5rem;
        border: 0.015rem solid #fff;
        font-size:0.5rem;
        border-radius: 50%;
        color: #fff;
        display: flex;
     line-height: 0.41rem;
        justify-content: center;
    }
</style>
<div class="xc_poppup-frame">
    <div class="men" onclick="popup_hide()"></div>
    <div class="big-frame">
    <div class="poppup">
        <div class="titles"></div>
        <p class="activity-explain"> </p>
    </div>
        <div class="shut-frame">
            <div class="shut" onclick="popup_hide()"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function popup_hide() {
        $(".xc_poppup-frame").hide();
    }

    function show_pop_text(title,val) {
        $(".xc_poppup-frame").show();
        if(title!=""&&title!=null){
            $(".xc_poppup-frame .poppup .titles").text(title);
        }else{
            $(".xc_poppup-frame .poppup .titles").text("温馨提示");

        }
        $(".xc_poppup-frame .poppup .activity-explain").text(val);

    }



</script>