版本一
來源:http://meyerweb.com/eric/tools/css/reset/
/* v1.0 | 20080212 */
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, 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 {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
版本二
來源:http://developer.yahoo.com/yui/reset/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:normal;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym { border:0;
}
-
‧
-
‧
-
‧
相關問答
- 解決Gmail無法正常顯示郵件中的CSS設定
- 解決IE6不支援css min-width與min-height
- 12種CSS小技巧
- 使用reset css之後,救回ul消失的list-style-type
- css的串接(Cascade)規則與明確度(Specificity)
- [css]解決背景圖在IE 6底下產生不正常的閃動現象
- vista正常開機後,在光棒處睡死,後來reset,以安全模式進入,結果睡死在 crcdisk.sys這個檔上
- 真正解決RIA瀏覽器問題的方法
- W3 School - 方便的參考資料
- jQuery表格變色
- 為什麼我們跳過Photoshop-37Signal談UI開發
- 簡單幾招讓你的電腦不再假死機
- default gateway 消失
- 利用Firebug的console功能作JavaScript偵錯
- 微軟將於年底前發表IE8正式版
- Microsoft TechEd Taiwan 2008 課程回顧 -- [WUX302] IE 8 新功能
- ichanel的問題
- [RoR] 依連線範圍區分權限及透過密碼授權
- 電腦不定時當機,該如何找出問題對症下藥









