遮罩层自定义样式和弹窗自定义样式都不生效
wxml
<page-container show="{{show}}" round
bind:clickoverlay="clickoverlay"
bind:beforeenter="beforeenter"
bind:enter="enter"
bind:afterenter="afterenter"
bind:beforeleave="beforeleave"
bind:leave="leave"
bind:afterleave="afterleave"
duration="1000"
overlay-style="overlay"
custom-style="custom-style"
position="bottom"
id="open-demo"
>
<view class="box">
Page-container
</view>
</page-container>
wxss
.box {
height: 900rpx;
background-color:transparent;
}
.overlay {
background-color: red;
opacity: 1;
}
.custom-style {
background-color: skyblue;
}
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
错了 custom-style 直接写样式 , 你把他理解成 -> custom-class