Use the canvas tag dynamically added by js to draw some lines, and use absolute positioning at a specific location. It is displayed by default, but the product requires that it can be hidden, so I made a button that can be hidden or displayed after clicking it. When using hide() and show(), why is the position of the canvas incorrect after hide() and then show()?
定位父级的问题 不要针对body或者其他更高的父级去定位 最好针对父级定位 回不到之前位置肯定是view层发生改变!答错勿怪,欢迎指正