popup.html
2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<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>