SoFunction
Updated on 2025-04-10

Property operations in JavaScript

display version: CSS1/CSS2 Compatibility: IE4+ NS4+ Inheritance: None

grammar:
     
display   :   block   |   none   |   inline   |   compact   |   marker   |   inline-table   |   list-item   |   run-in   |   table   |table-caption   |   table-cell   |   table-column   |   table-column-group   |   table-footer-group   |   table-header-group   |   table-row   |   table-row-group    

parameter:    

block   :    CSS1 The default value of the block object. Add a new line after using this value as the object
none   :    CSS1 Hide object. Unlike the hidden value of the visibility attribute, it does not reserve its physical space for hidden objects
inline   :    CSS1 The default value of inline objects. Use this value to delete rows from the object
compact   :    CSS2 The allocated object is a block object or an inline object based on content
marker   :    CSS2 Specifies the content before or after the container object. To use this parameter, the object must be used with :after and :before
inline-table   :   CSS2 Display the table as an inline object or inline container without front and back line breaks
list-item   :    CSS1 Specify the block object as a list item. And you can add optional project logo
run-in   :   CSS2 The allocation object is a block object or an inline object based on content
table   :    CSS2 Displays objects as block element-level table
table-caption   :    CSS2 Display the object as the table title
table-cell   :   CSS2 Display the object as a table cell
table-column   :    CSS2 Display the object as a table column
table-column-group   :    CSS2 Display objects as table column groups
table-header-group   :    CSS2 Display the object as a table title group
table-footer-group   :    CSS2 Display objects as table footnote groups
table-row   :    CSS2 Display the object as a table row
table-row-group   :    CSS2 Display the object as a table row group

illustrate:    

Sets or retrieves whether and how the object is displayed.
Currently, IE5.5 only supports the above CSS1 parameters.
The corresponding script feature is display. See other bibliography I have written.