该插件(秋云ucharts)编辑成 微信小程序在页面显示的时候层级过高,改 canvas(绘画)的z-index:0 !important ; 还是解决不了,给个建议

1***@163.com
- 发布:2024-01-24 17:10
- 更新:2024-01-24 21:56
- 阅读:1053
该插件(秋云ucharts)编辑成 微信小程序在页面显示的时候层级过高,改 canvas(绘画)的z-index:0 !important ; 还是解决不了,给个建议
分类:uni-app

喜欢技术的前端 - QQ---445849201
我是这么写的,希望能有所帮助
<view class="charts-box">
<qiun-data-charts type="arcbar" style="width: 150px;height: 150px;" :opts="opts"
:chartData="chartsDataArcbar" />
<view class="charts-box-c">
<view class="charts-box-c-t">
已减去(公斤)
</view>
<view class="charts-box-c-v">
0
</view>
<view class="charts-box-c-c">
查看方案 >
</view>
</view>
</view>
.charts-box {
width: 150px;
height: 150px;
position: relative;
}
.charts-box-c {
position: absolute;
z-index: 999;
top: 0rpx;
left: 0;
width: 150px;
height: 150px;
text-align: center;
}
1***@163.com (作者)
我是这么写的,在电脑上运行小程序可以,真机测试就不行了,真机测试就看不到自己写的view了
2024-01-25 09:14
1***@163.com (作者)
解决了,百度果然强大,开启 2d模式,就可以了
2024-01-25 09:37
2***@qq.com
回复 1***@163.com: 66666666666666
2024-06-04 22:20