更新时间:2022-03-25 07:21:50
您可以避免由 display:none;
,使用 visibility:hidden;
。使用 visibility:visible;
以使其可见。
You can avoid the width issue caused by display: none;
by using visibility: hidden;
instead. Use visibility: visible;
to make it visible.
元素保留在您的内容流。),而它只是看不见。
The element stays within your content flow (same size, etc.) while it's simply invisible.