最佳答案
每个浏览器都有自己的默认样式。
您应该使用“重置”样式表(这是我的)取消应用浏览器默认设置:
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,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;
}
ul { list-style-type: none; }
ol { list-style-type: decimal; }
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;
}
html, body { line-height: 1; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
blockquote, q { quotes: "" ""; }
* { font-family: Verdana, "Trebuchet MS", sans-serif;
font-size: 13px; color: #666;
text-decoration: none; white-space: normal;
vertical-align: baseline; }
input[text="submit"], button { color: #000; }
关于html - Firefox 和 Google Chrome 的 css 不一样?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2845290/