首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >vue样式集(八)弹窗,规则弹窗,半透明弹窗

vue样式集(八)弹窗,规则弹窗,半透明弹窗

原创
作者头像
IT工作者
发布2022-05-17 09:20:57
发布2022-05-17 09:20:57
5K00
代码可运行
举报
文章被收录于专栏:程序技术知识程序技术知识
运行总次数:0
代码可运行

效果图:

代码:

代码语言:javascript
代码运行次数:0
运行
复制
<view class="popupBlock" v-if="showPopupBlock">
            <view class="xxx">
                <image class="xxxImg" @click="showPopupBlock=false" mode="widthFix"
                 src="../../static/xxx.png"></image>
            </view>
            <view class="popupCrad">
                <view class="popupCradCentent">
                    <view class="popupCradCententTitle">
                        关于如何正确进行体格测量
                    </view>
                    <view class="popupCradCententItems">
                        身高 / 身长
                    </view>
                    <view class="popupCradCententDtails">
                        随便啦
                    </view>
                </view>
            </view>
</view>

css

代码语言:javascript
代码运行次数:0
运行
复制
<style lang="scss" scoped>
    .popupBlock {
        background-color: rgba(0, 0, 0, 0.7);
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
 
        .xxx {
            position: fixed;
            top: 120rpx;
            width: 70rpx;
            height: 70rpx;
            right: 70rpx;
 
            .xxxImg {
                width: 60rpx;
                height: 60rpx;
            }
        }
 
        .popupCrad {
            position: fixed;
            top: 210rpx;
            border-radius: 26rpx;
            background-color: #fff;
            width: 80%;
            left: 10%;
            min-height: 500rpx;
            .popupCradCentent{
                margin: 40rpx 30rpx 30rpx 30rpx;
                .popupCradCententTitle{
                    font-size: 36rpx;
                    font-weight: 600;
                    margin-top: 50rpx;
                    text-align: center;
                }
                .popupCradCententItems{
                    font-size: 32rpx;
                    font-weight: 600;
                    margin-top: 50rpx;
                    
                }
                .popupCradCententDtails{
                    margin-top: 30rpx;
                    font-size: 30rpx;                    
                }
            }
        }
    }
</style>

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

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

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

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

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