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
<html> <head> <style type="text/css"> p {display: inline} div {display: none} </style> </head> <body> <p>本例中的樣式表把段落元素設(shè)置為內(nèi)聯(lián)元素。</p> <p>而 div 元素不會(huì)顯示出來(lái)!</p> <div>div 元素的內(nèi)容不會(huì)顯示出來(lái)!</div> </body> </html>
Click the "Run instance" button to view the online instance