display

UK[dɪˈspleɪ] US[dɪˈsple]

n.Display; exhibition, display; display, exhibit; show off

vt. Display; display; expand, stretch; boast, show off

vi. (on computer screen) display

css display property syntax

Function:The display attribute specifies the type of box that the element should generate.

Description:This attribute is used to define the type of display box generated by the element when creating the layout. For document types such as HTML, using display carelessly can be dangerous, as it may violate the display hierarchy already defined in HTML. For XML, since XML doesn't have this kind of hierarchy built in, all display is absolutely necessary.

Note:All major browsers support the display attribute. If !DOCTYPE is specified, Internet Explorer 8 (and later) supports the attribute values "inline-table", "run-in", "table", "table-caption", "table-cell", "table- column", "table-column-group", "table-row", "table-row-group", and "inherit".

css display property example

   

本例中的样式表把段落元素设置为内联元素。

而 div 元素不会显示出来!

div 元素的内容不会显示出来!
Run instance »

Click the "Run instance" button to view the online instance