怎样可以遮住canvas?
< view class = "intro" > < canvas disable-scroll = "true" class = "canvas" canvas-id = "myCanvas" > < cover-image class = "c-img" src = "https://img.kidsvideo.cn/bbts/image/content/shiwu/shiwu3.png" ></ cover-image > </ canvas > </ view > |
最外层一个view,设置 overflow: hidden; 里面包裹着canvas(宽高比外层的大),正常想要看到的效果是这样的(开发者工具)
然而在真机上看到的是这样:
overflow: hidden;没效果。
遮不住,请问怎样可以实现这效果呢??