现象描述:redmi K40 pro(操作系统:安卓14) iphone 8Plus (ios 16.3.1) wx-open-launch-weapp 设置为透明色 但标签显示为纯白色块 。
正常: 异常
代码:
<div class="jumpApplet" id="jumpApplet" v-html="content"></div>
let height = document.querySelector('.jumpApplet').offsetHeight
this.content = `<wx-open-launch-weapp
style="position: absolute;top: 0;bottom: 0;right: 0;left: 0;"
appid = ${this.appid}
id=${this.launchId}
username=${this.username}
path=${this.path}
env-version =${this.envVersion}
extra-data=${this.extinfo}
<script type="text/wxtag-template">
<style>
.diy-style {
opacity: 0;
height: ${height}px
</style>
<div class="diy-style"> I打开小程序查看</div>
<script>
jumpApplet {
position: absolute;
top: 0;
right: 0;
background color: transparent;
你好,只有这个机型有问题吗?