[英]Arranging hidden elements using CSS
OK, this is what I need :好的,这就是我需要的:
visibility
property is set to hidden
.visibility
属性设置为hidden
。|<----------- AB ->|
|<----------- AB ->|
, and thus right-aligned. |<----------- A --->|
|<----------- A --->|
The question :问题:
Use display:none;
使用
display:none;
instead of visibility:hidden;
而不是
visibility:hidden;
as visibility:hidden;
作为
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. Visibility: hidden
将阻止元素被渲染,但它仍然会占用空间。
Display: none
will prevent the element from being rendered AND from affecting the layout. Display: none
将阻止元素被渲染并影响布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.