添加到CSS文件的頂部
html
{
height: 100%;
}
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;
}
忘了它。 – 2012-03-08 08:27:33
沒有真正的「一刀切」解決方案。看看我的答案在這個問題:http://stackoverflow.com/questions/8850363/is-there-a-program-or-a-framework-which-allows-to-build-cross-browser-compatible/ 8850500#8850500 – Bazzz 2012-03-08 08:28:08