Text hiding is widely used, but the commonly used methods have little affinity. Defects of commonly used text hiding methods: 1. display:none In this way, search engines may regard the hidden text as spam and ignore it; Screen readers ignore hidden text. 2. visibility: hidden This approach hides the text but still takes up physical space. Better way: overflow:hidden .class{ display:block;/*Convert to block-level elements*/ width:0; height:0; overflow:hidden; } It seems to be more user-friendly from the code because it is automatically hidden rather than forced to be hidden.