marginof the inline element and inline element, comparison ofpadding
- margin and value
- padding , up and down margin and up and down padding value not valid
- Span style= "font-size:16pt" >margin supports negative values, padding Negative values are not supported,
- margin two large bug!!!!!!!!!!!
- margin drag-and-drop parent: How it happened: a chunk of a packet, a small block, Give the small piece a margin-top (the margin-top of the child element is passed to the parent)
Resolution: 1 Add a border to the parent
???????????????????????? 2,: Add a float to the child
???????????????????? 3; padding????
???? 2,margin collapse (the upper and lower margin of adjacent two elements overlap)
- margin:0 auto/text-align-center Differences:
- For text, the picture is centered horizontally, with Text-align-center
- Center The Block element horizontally, with margin:0 auto (provided that the element has a width)
4.28 Main Contents