css display property
Translation results:
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 propertysyntax
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 propertyexample
<html> <head> <style type="text/css"> p {display: inline} div {display: none} </style> </head> <body> <p>本例中的样式表把段落元素设置为内联元素。</p> <p>而 div 元素不会显示出来!</p> <div>div 元素的内容不会显示出来!</div> </body> </html>
Click the "Run instance" button to view the online instance
Popular Recommendations
- Data Display in Gatsby
- Govee Curtain Lights 2 with GIF display feature now available
- New Anker Zolo 4-Port Wall Charger with display rumored
- 4 Ways to Open the Display Settings in Windows 11
- M4 iPad Pro Reviews: Incredible Speed and Display Hampered By Software
- Xiaomi reveals new smart body composition scale with 3.5-inch display