OK, this is what I need :
visibility
property is set to hidden
.|<----------- AB ->|
, and thus right-aligned. |<----------- A --->|
The question :
Use display:none;
instead of visibility:hidden;
as visibility:hidden;
will hide the element but still occupy the space
Visibility: hidden
will prevent the element from being rendered, but it will still take up space.
Display: none
will prevent the element from being rendered AND from affecting the layout.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.