uniapp微信小程序canvas隐藏

 

HTML

 我是把canvas嵌套在view里并被view设置id

<view id="canvas">
  <canvas  style="width: 350px; height: 530px;" canvas-id="firstCanvas"></canvas>
</view>

CSS

把它给顶出去

#canvas{
  position: fixed;
  top: -9999999999999rpx;
}

uniapp微信小程序canvas隐藏

相关推荐