CSSéç½®éç¨ä¸åçæ¹æ³æ¥å®ç°æµè§å¨é»è®¤å¼ãEric MeyerçReset CSSå·²ç»åå¨äºä¸æ®µæ¶é´ãä»çæ¹æ³ä½¿è®¸å¤å·²ç¥ä¼ç«å³å¯¼è´é®é¢çæµè§å¨å ç´ æ æã以䏿¯ä»ççæ¬ï¼v2.0 | 20110126ï¼CSS Resetã
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}åéå Â·æ¢ è¶ï¼Eric Meyerï¼çéç½®CSS
å¦ä¸æ¹é¢è§èCSSå¹¶åç¬å¤çå ¶ä¸ç许å¤å 容ã以䏿¯è¯¥ä»£ç çæ¬(v4.2.0)ä¸ç示ä¾ã
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in IE and iOS.
*/
/* Document
========================================================================== */
html {
font-family: sans-serif; /* 1 */
line-height: 1.15; /* 2 */
-ms-text-size-adjust: 100%; /* 3 */
-webkit-text-size-adjust: 100%; /* 3 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
/**
* Add the correct display in IE 9-.
*/
article,
aside,
footer,
header,
nav,
section {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}æ ååCSS