\n        
正常顯示元素<\/div>\n        隱藏元素<\/div>\n        
正常顯示元素<\/div>\n    <\/body>\n<\/html><\/pre>

\"How<\/p>##Instructions:

<\/p>

display: none can hide the element without occupying space, so dynamically changing this attribute will cause rearrangement (change the page layout), which can be understood as deleting the element from the page; it will not be inherited by descendants, but His descendants will not be shown, after all, they are all hidden together. <\/code><\/p>

Method 2: Using position and top attributes<\/strong><\/p>Just add

position: absolute;top: -9999px; style to the element<\/code>

\n\n    \n        \n        
<span id="sjdyd"></span>