Content Summary:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/3B/wKiom1eIrkmCh3xhAAAvvGfXBqk785.png "title=" 9.png " alt= "Wkiom1eirkmch3xhaaavvgfxbqk785.png"/>
One, Div and span
(1) block-level tags: div
(2) Inline tags: span
:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/3B/wKioL1eIsAyz4DLxAAAGLameyGk291.png "title=" 10.png "Width=" height= "194" border= "0" hspace= "0" vspace= "0" style= "width:300px;height:194px;" alt= " Wkiol1eisayz4dlxaaaglameygk291.png "/>
Second, box model (important)
Note: The browser's debugging tools can be used to view the box
(1) Margin: box margin
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/84/3B/wKioL1eIs7uBvF3OAAAyKkZJ7iU986.png "title=" 12.png "alt=" Wkiol1eis7ubvf3oaaaykkzj7iu986.png "/>
(2) Padding: Box inner margin (will change the size of the block)
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/84/3B/wKioL1eIueeA_OuWAAAaAoe1xew568.png "title=" 14.png "Width=" "height=" 122 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:600px;height:122px; "alt=" Wkiol1eiueea_ Ouwaaaaaoe1xew568.png "/>
(3) Border: Box Border width
(4) Width: Box width
(5) Height: box height
①: Difference between margin and inner margin:
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/84/3B/wKiom1eIvH7yYbjSAAA9lngkwb0080.png-wh_500x0-wm_3 -wmp_4-s_136407240.png "title=" 13.png "alt=" Wkiom1eivh7yybjsaaa9lngkwb0080.png-wh_50 "/>
Demo.html
<!doctype html>
②: Box Model div Placement Example:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/84/3B/wKiom1eIu9yTP3x5AAALfZOZNzg201.png-wh_500x0-wm_3 -wmp_4-s_2964547288.png "title=" 16.png "alt=" Wkiom1eiu9ytp3x5aaalfzoznzg201.png-wh_50 "/>
Demo.html
<!doctype html>
This article from "Sour Milk" blog, reproduced please contact the author!
CSS folding Style (4)--div+css layout