这个网址的解决方法,亲测有效 https://www.cnblogs.com/hodbi4/articles/14691039.html mask-style="background-image: linear-gradient(#ff2020,rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0),#ff2020);"
picker-view mask-style设置蒙层背景色会覆盖中间选择部分官方示例项目https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html中添加 mask-style="background-color: #000000;opacity:0.8" 表现如下,选中区域也被覆盖了,是bug吗 [图片] <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" mask-style="background-color: #000000;opacity:0.8" value="{{value}}" bindchange="bindChange"> <picker-view-column> <view wx:for="{{years}}" style="line-height: 50px">{{item}}年</view> </picker-view-column> <picker-view-column> <view wx:for="{{months}}" style="line-height: 50px">{{item}}月</view> </picker-view-column> <picker-view-column> <view wx:for="{{days}}" style="line-height: 50px">{{item}}日</view> </picker-view-column> </picker-view>
2023-08-04