一款好看的网页公告弹窗代码

在这里插入图片描述

<style>
    .act-user-modal[data-v-627ce64e] {
        width: 900px;
        height: 570px;
        position: fixed;
        left: 50%;
        top: 50%;
        z-index: 9000;
        background: url(https://sr.ffquan.cn/dtk_www/20211209/c6on489alsbijbagcnu02.png)
            no-repeat 50%;
        margin: -285px 0 0 -450px;
    }
 
    .act-user-modal .close[data-v-627ce64e] {
        position: absolute;
        top: -24px;
        right: 12px;
        width: 24px;
        height: 24px;
        text-align: center;
        line-height: 24px;
        font-size: 18px;
        border-radius: 50%;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
 
    .act-user-modal h3[data-v-627ce64e] {
        padding: 21px 0 0 92px;
        margin: auto;
        text-align: left;
    }
 
    .act-user-modal h3 img[data-v-627ce64e] {
        margin: 0;
        height: 50px;
    }
 
    .act-user-modal img[data-v-627ce64e] {
        display: block;
        margin: 0 auto;
    }
 
    .act-user-modal .center[data-v-627ce64e] {
        height: 240px;
    }
 
    .act-user-modal .center h1[data-v-627ce64e] {
        text-align: center;
        font-size: 34px;
        color: #333;
        margin: 0 auto;
        width: 700px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
 
    .act-user-modal .center .desc[data-v-627ce64e] {
        text-align: center;
        font-size: 20px;
        padding: 10px 0 10px;
    }
 
    dl,
    dt,
    li,
    ol,
    p,
    ul {
        margin: 0;
        padding: 0;
        font-style: normal;
        list-style: none;
    }
 
    .act-user-modal .center .nr[data-v-627ce64e] {
        width: 580px;
        text-align: center;
        font-size: 14px;
        line-height: 26px;
        color: #777;
        margin: auto;
    }
 
    .act-user-modal ul[data-v-627ce64e] {
        display: flex;
        width: 640px;
        margin: auto;
        justify-content: space-around;
    }
 
    .act-user-modal ul li[data-v-627ce64e] {
        width: 130px;
        color: #fff;
        text-align: center;
    }
 
    .act-user-modal ul li img[data-v-627ce64e] {
        margin-bottom: 10px;
        height: 72px;
    }
 
    .act-user-modal ul li .name[data-v-627ce64e] {
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 10px;
    }
 
    .act-user-modal .btn[data-v-627ce64e] {
        width: 180px;
        height: 50px;
        background: #fff;
        border-radius: 37.5px;
        color: #df1f39;
        font-size: 19px;
        text-align: center;
        line-height: 50px;
        margin: auto;
        border: 0;
        display: block;
        position: relative;
        z-index: 0;
        top: 45px;
        cursor: pointer;
    }
 
    .act-user-modal-bg[data-v-627ce64e] {
        background: #000;
        opacity: 0.8;
        position: fixed;
        left: 0;
        z-index: 8999;
        top: 0;
        width: 100%;
        height: 100%;
    }
</style>
<div class="body" data-v-627ce64e="" data-v-a4fec598="">
    <div data-v-627ce64e="" class="act-user-modal">
        <span data-v-627ce64e="" class="close"
            ><i
                data-v-f0f45c4c=""
                data-v-627ce64e=""
                class="iconfont icon-hide"
                style="font-size: 30px; color: rgb(255, 255, 255)"
            ></i
        ></span>
        <h3 data-v-627ce64e="">
            <img data-v-627ce64e="" alt="" src="https://img.ahap.cn/logo/logo.svg" />
        </h3>
        <div data-v-627ce64e="" class="center">
            <h1 data-v-627ce64e="">欢迎来到XXX</h1>
            <p data-v-627ce64e="" class="desc">一款专门为您省钱的官方导购网站</p>
            <div data-v-627ce64e="" class="nr">
                每日更新数万款天猫淘宝大额优惠券,领券狂省低至1折,想要什么一键全网搜索。精选大牌底价开团,聚划算买一送一,第二件0元,海量折扣应有尽有。专业人工团队严控产品质,帮你花更少钱买好货。
            </div>
        </div>
        <ul data-v-627ce64e="">
            <li data-v-627ce64e="">
                <img
                    data-v-627ce64e=""
                    src="https://sr.ffquan.cn/dtk_www/20211209/c6onqlhalsbijbagcnug3.png"
                />
                <p data-v-627ce64e="" class="name">领券购物省钱</p>
                <p data-v-627ce64e="" class="test">
                    每日更新海量天猫淘宝大额优惠券,领券购物低至1折,让你花少钱买到心仪好物
                </p>
            </li>
            <li data-v-627ce64e="">
                <img
                    data-v-627ce64e=""
                    src="https://sr.ffquan.cn/dtk_www/20211209/c6onqlhalsbijbagcnug2.png"
                />
                <p data-v-627ce64e="" class="name">精选爆款栏目</p>
                <p data-v-627ce64e="" class="test">
                    聚划算精品折上折、疯抢排行、 每日半价、咚咚抢…海量惊喜折扣等你体验
                </p>
            </li>
            <li data-v-627ce64e="">
                <img
                    data-v-627ce64e=""
                    src="https://sr.ffquan.cn/dtk_www/20211209/c6onqlhalsbijbagcnug1.png"
                />
                <p data-v-627ce64e="" class="name">大牌优惠好货</p>
                <p data-v-627ce64e="" class="test">
                    每日更新优质好货、百人品控团队、只为提供超高性价比的前沿好物
                </p>
            </li>
        </ul>
        <button data-v-627ce64e="" class="btn" onclick="handleClick()">
            我知道了~
        </button>
    </div>
    <div data-v-627ce64e="" class="act-user-modal-bg"></div>
</div>
 
<script>
    function handleClick() {
        document.querySelector('.body').style.display = 'none';
    }
</script>
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值