Border usage
border: Border. The properties are: Border-width,border-style,border-color.
1 < ID= "D1">2 height 200, broadband 200, border color red border. 3</div>
1 #d1 {2 width:200px; 3 height:200px; 4 border:1px solid red; 5 }
Border-width: Represents the thickness of the border. Border-style: Border style. Solid solid line. Dashed dashed line. Dotted: Dot line. Border-color: Border color.
Examples Show
1 #d1 {2 width:200px; 3 height:200px; 4 border:2px dashed red; 5 }
Web Background (background)
Page background Settings properties are: Background-color: Background color. Background-image: Background image. Background-position: The position of the background image. Background-attachment:fixed: Specifies whether the background image is fixed or scrolls along with the rest of the page.
To illustrate:
1 < ID= "D2">2 Background small icon set 3</ div>
1 #d2{2 width:14px;3 Height:14px;4 margin:0px;5 padding:0px;6 Background-image:URL (.. /image/iconnew.png);7 background-position:left-50px;8 background-attachment:fixed;9}
Form (table)
The borders are merged into a single border.
1 Table {2width:300px; 3 height:400px; 4 border:1px solid #ccc; 5 border-collapse: collapse; /* Merge Border */ 6 }
Talking about CSS styles (border, background, table)