.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}

- 发布:2022-06-23 10:56
- 更新:2022-06-23 10:59
- 阅读:605
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 最新
第三方开发者工具版本号: 1.06.2206090
基础库版本号: 2.23.0
项目创建方式: CLI
CLI版本号: 3.0.0-alpha-3041520220609002
示例代码:
操作步骤:
yarn build:mp-weixin
yarn build:mp-weixin
预期结果:
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6);}
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6);}
实际结果:
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
bug描述:
npx degit dcloudio/uni-preset-vue#vite my-vue3-project
用官方的demo克隆项目
yarn build:mp-weixin 打包
打包完成后,所有大括号最后一行样式丢失分号(;)
.bottom-popup{height:100%;position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
1 个回复
BoredApe - 有问题就会有答案。
丢失封号会造成什么问题吗? 试试在
manifest.json
中关闭摇树优化