在小程序app开发中 uview-ui框架是一种呼声比较高的框架
近期在开发中遇到的问题 使用u-popup弹出框设置背景图片
这里可以看到自带背景颜色为白色 网上查了些资料具体都没什么用 所以在去看popup源码时看到
.u-mode-center-box {
min-width: 100rpx;
min-height: 100rpx;
/* #ifndef APP-NVUE */
display: block;
/* #endif */
position: relative;
background-color: #ffffff;
}
这个是内部封装的代码 所以在使用这个Popup时使用样式穿透
/deep/.u-mode-center-box{
background-color: transparent !important;
}
这样就可以解决背景白色的问题
至于这两个按钮不要在意【手动狗头】