Htmlcss notes -- reset css reset and htmlcsscss by TAG default Style
1. <a> label
Default text modifier: underline,
Remove: text-decoration: none;
Text-decoration property value:
None is the default value. Define standard text. Underline defines a line in the text. Overline defines a line in the text. Line-through defines a line passing through the text. Blink defines the flickering text. Inherit specifies that the value of the text-decoration attribute should be inherited from the parent element.
2. <ul> <ol>
Default list style: list-style: none;
Default internal and external margins: margin: 0; padding: 0;
<Dl> <dd> default margin: 0;
3. body
The default body has an external border,
Remove: body {margin: 0 ;}
The p tag has the upper and lower margins by default. (the lower margin overlaps with the top margins of other blocks. The outer margin after the stacked is the maximum value of 2 .)
Title h1, h2, h3, h4, h5, h6, all by default outer border,
4. Default text size:
The text size on the page is different, for example,
Remove: body {font-size: xpx. Minimum Chinese text size: 12px;
5. The default page font is.
Font-family;
6. The image in the package is added with a border in ie6.
Img {border: none ;}
Summary:
<Style>
Body. p, h1, h2, h3, h4, h5, h6, dl, dd {margin: 0; font-size: 12px; font-family: XX ;}
Ol, ul {list-style: none; padding: 0; margin: 0 ;}
Img {border: none ;}
A {text-decoration: none ;}
</Style>