canvas组件真机调试与模拟器显示不相同
bug复现:
真机调试阶段,canvas组件会透过所有层级达到最上层:
编译器则正常显示:
代码:
html
<canvas style=“width: 500rpx; height: 50rpx;” canvas-id="{{index+1}}"></canvas>
css
canvas{
position: absolute;
left: 50%;
bottom: 20rpx;
margin-left: -250rpx;
}
7 回复