前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >一款很好看的网页公告弹窗代码

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

原创
作者头像
^夜猫^
发布2023-08-25 10:21:59
4030
发布2023-08-25 10:21:59
举报
文章被收录于专栏:夜猫专栏夜猫专栏
代码语言:javascript
复制
<style>
    .act-user-modal[data-v-627ce64e] {
        width: 900px;
        height: 570px;
        position: fixed;
        left: 50%;
        top: 50%;
        z-index: 9000;
        background: url([img]https://sr.ffquan.cn/dtk_www/20211209/c6on489alsbijbagcnu02.png[/img]) 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: .8;
        position: fixed;
        left: 0;
        z-index: 8999;
        top: 0;
        width: 100%;
        height: 100%;
    }
</style>
<div 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">我知道了~</button>
    </div>
    <div data-v-627ce64e="" class="act-user-modal-bg"></div>
</div>

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档