The <div> tag defines a division or section in a document. Use it to organize content into independent parts without applying any formatting.
Embedded component support
This component supports nesting any other component.
Styles
The <div> component supports all common styles.
Properties
None.
Events
The <div> component supports all common events.
Example
<div>
<div class="box"></div>
</div>
.box {
border-width: 2px;
border-style: solid;
border-color: #BBB;
width: 250px;
height: 250px;
margin-top: 250px;
margin-left: 250px;
background-color: #EEE
}
Sample code
Click detailDiv.zip to download the complete sample code.
该文章对您有帮助吗?