Home > Article > Web Front-end > Hide and show CSS elements
display: Make the paragraph appear within the line Box
visibility: Attribute specifies whether the element is visible.
value | description |
---|---|
none | This element will not be displayed. |
block | #This element will be displayed as a block-level element, with line breaks before and after this element. |
inline | Default. This element will be displayed as an inline element with no line breaks before or after the element. |
inline-block | Inline block element. (New value in CSS2.1) |
list-item | This element will be displayed as a list. |
run-in | This element will appear as a block-level element or an inline element, depending on the context. |
compact | The value compact was present in CSS, but was removed from CSS2.1 due to lack of widespread support . |
marker | There is a value marker in CSS, but it has been removed from CSS2.1 due to lack of widespread support. . |
##table | This element will be displayed as a block-level table (similar to f5d188ed2c074f8b944552db028f98a1), with line breaks before and after the table. |
This element will be displayed as an inline table (similar to | 524b4dfaaf6562cf3bd3b8b3750f31b3). |
This element will be displayed as a group of one or more rows (similar to | ae20bdd317918ca68efdc799512a9b39). |
This element will be displayed as a group of one or more rows (similar to | 06669983c3badb677f993a8c29d18845). |
This element will be displayed as a table row (similar to | a34de1251f0d9fe1e645927f19a896e8 ). |
This element will be displayed as a group of one or more columns (similar to | 879b49175114808d868f5fe5e24c4e0b). |
##table-column | This element will be displayed as a column of cells (similar to 54da8e246f0b045dfa0bfd35f620ee92 and b4d429308760b6c2d20d6300079ed38e) |
This element will be displayed as a table title (similar to | 63bd76834ec05ac1f4c0ebbeaafb0994) |
Specifies that the value of the display attribute should be inherited from the parent element. |
Description | |
---|---|
Default value. The element is visible. | |
The element is invisible. | |
When used in a table element, this value deletes a row or column, but it does not Will affect the layout of the table. The space occupied by a row or column is freed for other content. If this value is used on another element, it will be rendered as "hidden". | |
Specifies that the value of the visibility attribute should be inherited from the parent element. |
The above is the detailed content of Hide and show CSS elements. For more information, please follow other related articles on the PHP Chinese website!