Vue自定义成功弹窗H5实现类似于小程序的效果
效果图:
<div class="father">
<div class="success-box" v-if="isSuccess">
<img src="../../assets/insure/success-logo.png" alt="">
<span>{{ successTitle }}</span>
</div>
</div>
.father{
position: relative;
}
.success-box {
width: 130px;
height: 130px;
border-radius: 8px;
background: rgba(64, 64, 64, 0.88);
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
gap: 21px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -65px;
margin-top: -65px;
color: #FFF;
text-align: center;
font-family: "PingFang SC";
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: normal;
}
原文地址:https://blog.csdn.net/qq_59626859/article/details/135851285
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!