第1个回答 2012-03-21
写CSS之前 先要把所有浏览器的 样式都统一了!~
然后在写CSS样式就OK了 这些样式叫重置文件 奉上我的重置文件 希望可以对你有帮助 这个东西是可以根据自己的习惯改变的!~
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, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { border: 0 none; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0 none; padding: 0; }
:focus { outline: 0 none; }
table { border-collapse: collapse; border-spacing: 0; }
caption, th, td { font-weight: normal; text-align: left; }
a img, iframe { border: medium none; }
ol, ul { list-style: none outside none; }
input, textarea, select, button { font-family: inherit; font-size: 100%; }
body { font-family: "宋体"; font-size: 12px;}
有这些还是仅仅不够的 还要注意IE6的BUG 主要问题都出现在IE6里
手工奉上 望采纳!~本回答被提问者采纳