pc端支付蒙版样式 html+css

先上样式
在这里插入图片描述
html部分

     <!--充值蒙版-->
     <div class="main11" v-if="main10true"></div>
     <div class="main11son" v-if="main10true">
           <div class="top">
                <div class="topleft">&#8194;&#8194;充值方式</div>
                <div class="topright" @click="close">×</div>
           </div><br/>
           <div class="bom">
               <div class="wechat wx" @click="wechatpay">
                   <div class="kong"></div>&#8194;
                   <div class="w1 wtu1" style="width:40px;height:30px;"></div>
                   <div class="w2">&#8194;微信付款</div>
               </div>
               <div class="wechat alp" @click="alipay">
                   <div class="kong"></div>
                   <div class="w1 wtu2"></div>
                   <div class="w2">&#8194;&#8194;支付宝付款</div>
               </div>
           </div>  
     </div> 

css部分

.main11{
    width: 100vw;
    height: 130vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(88, 87, 86);
    opacity: 0.9;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;

}
.main11son{
    position: absolute;
    top: 420px;
    left: 800px;
    z-index: 1100;
    width: 300px;
    height:200px;
    background-color: #fff;
    .top{
        width: 100%;
        height: 40px;
        color: #fff;
        background-color: #B82E2D;
        display: flex;
        align-items: center;
        justify-content: center;
        .topleft{
           flex:6;
           height: 100%;
           font-size: 14px;
           display: flex;
           align-items: center;
           justify-content: flex-start;
        }
        .topright{
            flex:1;
            height: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
        }
        .topright:hover{
            background-color:#f20c00;
            color: #fff;
        }
    }
    .bom{
        width: 100%;
        height: 150px;
        .wechat{
            width: 70%;
            margin: 0 auto;
            margin-top: 10px;
            height: 50px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            cursor: pointer;
            font-weight: 600;
            .kong{
                width: 30px;
            }
            .w1{
               width: 40px;
               height: 40px;
               background-repeat: no-repeat;
               background-size: contain;
            }
            .w2{
               flex:1;
               display: flex;
               align-items: center;
               justify-content: flex-start;
            }
        }
        .wx{background-color: #2EC100;}
        .alp{background-color: #1678FF;}
    }
}

        //   .btn{
        //         height: 50px;
        //         width: 100%;
        //         margin-top: 50px;
        //     }

.wtu1{
   background-image: url(../../assets/微信.png);
}
.wtu2{
  background-image: url(../../assets/支付宝.png);
}
@media screen and (max-width: 1680px) {
    .main11son{
        left: 700px;
    }
}
@media screen and (max-width: 1480px) {
    .main11son{
        left: 600px;
    }
}
@media screen and (max-width: 1300px) {
    .main11son{
        left: 520px;
    }
}
@media screen and (max-width: 1280px) {
    .main11son{
        left: 450px;
    }
}

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

范天缘

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值