CSS重置樣式

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, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
body, button, input, select, textarea { color: #2b2b2b; font: 12px/1.5 "Hiragino Sans GB", Tahoma, Arial, Microsoft YaHei, "微軟雅黑", "Helvetica Neue", sans-serif; *font-family: "Hiragino Sans GB", Microsoft YaHei, "微軟雅黑", Tahoma, Arial, "Helvetica Neue", sans-serif; }
ol, ul, li { list-style: none; vertical-align:middle; }
img { border: none; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; margin: 10px 0 5px 0; }
h1 { font-size: 26px; line-height: 1.3846153846; }
h2 { font-size: 24px; line-height: 1; }
h3 { font-size: 22px; line-height: 1.0909090909; }
h4 { font-size: 20px; line-height: 1.2; }
h5 { font-size: 18px; line-height: 1.3333333333; }
h6 { font-size: 16px; line-height: 1.5; }
input, select { vertical-align: middle; outline: none; }
table { border-collapse: collapse; border-spacing: 0; empty-cells: show; }
.cf:before, .cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.cf { zoom: 1; }
.lt { float: left; }
.rt { float: right; }
.relative { position: relative; top: auto; left: auto; }
a { color: #000; text-decoration: none; }
a:hover { color: #333; text-decoration: underline; }
i { display: inline-block; vertical-align: middle; margin: 0 5px; font-style: normal; }
發佈了12 篇原創文章 · 獲贊 8 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章