简明现代魔法 -> CSS层叠样式表 -> 将HTML的标签样式写到CSS里
将HTML的标签样式写到CSS里
2009-08-23
从网上拷贝来的CSS代码
html, body, div, span, object, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
/*margin: 0;*/
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
控制HTML标签样式的CSS
将以下代码写入CSS文件,即可控制h1、h2、h3、h4、h5、h6、p以及表格table的相关标签的样式,将这些标签里的中文设为宋体,英文设为Verdana。
h1, h2, h3, h4, p,
table, caption, tr, th, td {
font-family:Verdana,宋体;
font-size: 12px;
}
