• html页面广告5秒之后跳过


    • 首页
      在这里插入图片描述
    -
    DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1; minimum-scale=1; user-scalable=no;"> 
           <title>Documenttitle>
           <link rel="stylesheet" href="./swiper/swiper-bundle.css">
        <style>
            html{font-size: 31.25vw;}
            body{font-size: 16px;}
            *{margin: 0;padding: 0;list-style: none;text-decoration: none;}
            html,body{width:100%;height:100%}
           .boxOne{width: 100%;height:100%;position: relative;overflow: hidden;}
           .boxOne .boxOne_news{width: 100%;height: 100%;}
           .header{width: 100%;height: 0.5rem;display: flex;align-items: center;justify-content: center;margin-bottom: 0.1rem;}
           .content{overflow:auto;width: 100%;height:93%;background: url(./wechatImg/bg_img1.png) no-repeat;background-size: 100% 100%;position: relative;}
           .footer{width: 100%;height:7%;position: relative;bottom: 0px;display: flex;justify-content: space-around;align-items: center;}
           .header p{font-size: 0.15rem;}
           .header span img{width: 60%;}
           .header span{position: absolute;left: 9%;font-size: 0.2rem;}
           .userBox{width: 100%;height:0.6rem;display: flex;flex: 1;justify-content: space-evenly;}
           .username{width: 1.5rem;height: 0.5rem;display: flex;position: relative;}
           .step{width: 22%;margin-left: 22%;}
           .user_left{width: 1.43rem;height: 0.45rem;background-color: #d2edfd;align-self: center;  border-radius: 15px 35px 35px 15px;margin-left: 0.2rem;}
           .user_img{width:0.49rem;height:0.46rem;background-color: blue;border-radius: 50%;position: absolute;overflow: hidden;border: 4px solid #fff;}
           .user_img img{width: 0.5rem;height: 0.5rem;}
           .name{margin-top:0.1rem; margin-left: 0.37rem;font-size: 0.13rem;font-weight: 600;}
           .level{font-size: 0.09rem;margin-left:0.35rem;background-color: #51ba86;transform: skewX(-16deg);width: 0.7rem;color: #fff;text-align: center;}
           .step img{width: 70%;margin-left: 26%;}
           .content_list{width: 90%;height:2rem;background-color: #ffffff;position: absolute;top: 47%;left: 5%;}
           .list_title{width: 100%;line-height: 0.4rem;font-size: 0.15rem;}
           .list_title p{float: left;font-weight: 900;margin-left: 7%;}
           .list_title span {float: right;width: 0.8rem;font-size: 0.1rem;color: #e0e0e0;}
           .list_title span img{width: 0.04rem;}
           .swiper{width: 100%;height: 1.6rem;display: flex;flex: 1;}
           .swiper ul li{float: left;width: 25%;height: 0.7rem;}
           .swiper ul{width: 80%;margin: 2% auto;height: 1.6rem;}
           .swiper ul li a{display: block;text-align: center;}
           .swiper ul li a img{width: 50%;}
           .swiper ul li a p{font-size: 0.1rem;color:#000}
           .swiper ul li a span{font-size: 0.09rem;color: #e0e0e0;}
           .content_bottom{width: 100%;height: 0.6rem;position: absolute;top: 5.5rem;text-align: center;}
           .content_bottom img {width: 70%;}
           .footer_left {text-align: center;}
           .footer_right {text-align: center;}
           .footer_left .foot_img{width: 0.2rem;text-align: center;}
           .footer_right .foot_img{width: 0.2rem;text-align: center;}
           .footer_left p{font-size: 10px;color: #b7b7b7;}
           .footer_right p{font-size: 10px;color: #b7b7b7;}
           .foot_img_hover{display: none;width: 0.2rem;text-align: center;}
           .close_news p{text-align: center; border-radius: 0.2rem;width: 1rem;height: 0.3rem;background-color:  #b7b7b7;position: absolute;top: 0.2rem;right: 0.2rem;font-size: 0.2rem;color: #fff;}
        style>
    head>
    <body>
        <div class="boxOne">
            
            <img class="boxOne_news" id="boxOne_news" src="./wechatImg/IMG_0780.gif" alt=""> 
            <div class="close_news">
                <p><span id="count5s">5span>秒后关闭p>  
            div>
            <div class="content">
                <div class="header">
                    <span><img src="./wechatImg/jiantou1.png" alt="">span>
                    <p>******p>
                div>
            <div class="userBox">
                <div class="username">
                    <div class="user_img">
                        <img src="./wechatImg/img1.png" alt="">
                    div>
                    <div class="user_left">
                        <p class="name">我的用户名p>
                        <p class="level">LV1 低碳萌新p>
                    div>
                div>
                <div class="step">
                    <img src="./wechatImg/img2.png" alt="">
                div>
    
            div>
            
            <div class="content_list">
                <div class="list_title">
                    <p>碳积分获取攻略p>
                    <span>全部攻略 <img src="./wechatImg/list_more.png" alt="">span>
                div>
                <div class="swiper">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <ul>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/wechat.png" alt="">
                                        <p>微信支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/zhifubao.png" alt="">
                                        <p>支付宝支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/jd.png" alt="">
                                        <p>京东支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/sport.png" alt="">
                                        <p>微信运动p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/money.png" alt="">
                                        <p>存款p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/licai.png" alt="">
                                        <p>购买理财p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/zhuanzhang.png" alt="">
                                        <p>转账p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/ATM.png" alt="">
                                        <p>ATM/CRSp>
                                        <span>每次一积分span>
                                    a>
                                li>
                            ul>
                        div>
                        <div class="swiper-slide">
                            <ul>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/wechat.png" alt="">
                                        <p>微信支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/zhifubao.png" alt="">
                                        <p>支付宝支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/jd.png" alt="">
                                        <p>京东支付p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/sport.png" alt="">
                                        <p>微信运动p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/money.png" alt="">
                                        <p>存款p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/licai.png" alt="">
                                        <p>购买理财p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/zhuanzhang.png" alt="">
                                        <p>转账p>
                                        <span>每次一积分span>
                                    a>
                                li>
                                <li>
                                    <a href="#">
                                        <img src="./wechatImg/ATM.png" alt="">
                                        <p>ATM/CRSp>
                                        <span>每次一积分span>
                                    a>
                                li>
                            ul>
                        div>
                      
                    div>
                    
                    <div class="swiper-pagination">div>
                div>
            div>
    
            <div class="content_bottom">
                <img src="./img/index/碳足迹计算器.png" alt="">
    
            div>
            div>
        
            <div class="footer">
                <div class="footer_left">
                    <a href="./index.html">
                    <img class="foot_img" src="./wechatImg/index1.png" alt="">
                    <img class="foot_img_hover" src="./wechatImg/index2 .png" alt="">
                    <p>首页p>
                a>
                div>
                <div class="footer_right">
                    <a href="./mine.html">
                    <img class="foot_img" src="./wechatImg/mine.png" alt="">
                    <img class="foot_img_hover" src="./wechatImg/mine2.png" alt="">
                    <p>我的p>
                a>
                div>
            div>
        div>
    
    
        <script src="./jquery1.42.min.js">script>
        <script src="./swiper/swiper-bundle.js">script>
        <script language="javascript"> 
            var mySwiper = new Swiper('.swiper',{
              pagination: {
                el: '.swiper-pagination',
              },
              uniqueNavElements: false,
            })
    
            //5秒之后进行自动关闭
            function closeAds() {
                document.getElementById('boxOne_news').style.display = "none";
            }
            var oCount5s = document.getElementById("count5s").innerText
            var second = parseInt(oCount5s)
            function countDown() {
                second -= 1;
                document.getElementById("count5s").innerText = second;
    
            }
            var countDown = setInterval(countDown, 1000)
            setInterval(function () {
    
                if (second === 0) {
                    closeAds();
                    clearInterval(countDown);
                }
            }, 1000)
    
            //手动关闭
            $('.close_news').click(function(){
                $('.boxOne_news').hide();
            })
            script>
    body>
    html>
    
    • 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
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
    • 200
    • 201
    • 202
    • 203
    • 204
    • 205
    • 206
    • 207
    • 208
    • 209
    • 210
    • 211
    • 212
    • 213
    • 214
    • 215
    • 216
    • 217
    • 218
    • 219
    • 220
    • 221
    • 222
    • 223
    • 224
    • 225
    • 226
    • 227
    • 228
    • 229
    • 230
    • 231
    • 232
    • 233
    • 234
    • 235
    • 236
    • 237
    • 238
    • 239
    • 240
    • 241
    • 242
    • 243
    • 244
    • 245
    • 246
    • 247
    • 248
    • 249
    • 250
    • 251
    • 252
    • 253
    • 254
    • 255
    • 256
    • 257
    • 258
    • 259
    • 260
    • 261
    • 262
    • 263
    • 264
    • 265
    • 266
    • 267
    • 268
    • 269
    • 270
    • 271
    • 272
    • 273
    • 274
    • 275
    • 276
    • 277
    • 278
    • 279
  • 相关阅读:
    mfc140.dll丢失如何修复,分享多种有效的修复方法
    axios在vue3.x中的基础入门使用
    航顺主流替代型HK32F103系列
    10.VScode下载---Windows64x
    .NET桌面程序集成Web网页开发的十种解决方案
    分库表数据倾斜的处理让我联想到了AKF模型
    2、计算机图形学——视图变换
    【Qt】桌面应用开发教程——布局|按钮组|容器|常用控件|消息事件机制
    管理那些事
    Unity 点击UI(按钮)与点击屏幕冲突
  • 原文地址:https://blog.csdn.net/weixin_47120348/article/details/127860571