How different are the effects of hidden elements on page rendering performance by using zMurindex:-1 and display: none?

how different are the effects of hidden elements on page rendering performance controlled by zMurray index:-1 and display: none?

Nov.10,2021

z-index when does it become an attribute of a hidden element, just putting it behind the screen, but still visible (without other elements blocking it). The above event will not be triggered. If the number of


is not particularly large, the impact on performance


z-index control invisibility is wrong. Generally speaking, the difference between display:none and visibility:hidden is discussed


z-index:-1 is not hidden, only because the hierarchical relationship is blocked, resulting in invisibility.
display:none is hidden, but it is only not displayed on the page. The dom corresponding to
visibility:hidden will occupy the corresponding space

.
Menu