赛派号

项链哪种材质不过敏不掉色 CSS visibility property

CSS visibility Property ❮ Previous Complete CSS Reference Next ❯ Example

Hide a element:

h3 {  visibility: hidden;} Try it Yourself »

More "Try it Yourself" examples below.

Definition and Usage

The visibility property specifies whether or not an element is visible.

Tip: Hidden elements still take up space on the page. Use the CSS display property to both hide and remove an element from the document layout!

Show demo ❯

Default value: visible Inherited: yes Animatable: yes. Read about animatable Version: CSS2 JaScript syntax: object.style.visibility="hidden" Try it Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property visibility 1.0 4.0 1.0 1.0 4.0 CSS Syntax visibility: visible|hidden|collapse|initial|inherit; Property Values Value Description Demo visible Default value. The element is visible Demo ❯ hidden The element is hidden (but still takes up space) Demo ❯ collapse Only for table rows (), row groups (), columns (), column groups (), and flex items. This value removes a row or column as if display: none where used.

If collapse is used on other elements, it renders as "hidden"

initial Sets this property to its default value. Read about initial inherit Inherits this property from its parent element. Read about inherit More Examples Example

This example demonstrates how to make a table row element collapse:

tr.collapse {  visibility: collapse;} Try it Yourself » Related Pages

CSS tutorial: CSS Display and visibility

HTML DOM reference: visibility property

❮ Previous Complete CSS Reference Next ❯ ★ +1 Sign in to track progress

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lsinopec@gmail.com举报,一经查实,本站将立刻删除。

上一篇 没有了

下一篇没有了