css(2.0) reset

網頁設計在寫css之前,最好要先做css reset這步驟,可以減少很多css設計實不必要的困擾與麻煩!!

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin0;
padding0;
}
table {
border-collapsecollapse;
border-spacing0;
}
fieldset, img {
border0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-stylenormal;
font-weightnormal;
}
ol, ul {
list-stylenone;
}
caption, th {
text-alignleft;
}
h1, h2, h3, h4, h5, h6 {
font-size100%;
font-weightnormal;
}
qbefore, qafter {
content";
}
abbr, acronym {
border0;
}


About this entry