I believe that many times, everyone will encounter the need to use canvas to generate pictures.
Of course I also encountered it. After generating the canvas in the wxml page of the project, I found out how to add css to the canvas tag. I can't prevent the canvas from affecting the page.
After thinking about it for a while, I came up with the followingsolution:Add a parent tag to the outer layer of
canvas
, and then Control the display of the parent tag
If the above does not work, please see the following:
ok .. Come on and write the code...
Recommended tutorial: "WeChat Mini Program》
The above is the detailed content of Solving the problem of mini program canvas hiding. For more information, please follow other related articles on the PHP Chinese website!