不同浏览器对于相同元素的默认样式并不一致,而且不同内核的浏览器在某些控件(元素)的表现上也是各有差异,比如字体、缩进等等,这些问题都是由于浏览器的默认样式(CSS)在作怪,下面西部e网整理了一份浏览器默认css的样式表文件,包括了IE各版本、Firefox、Opera、Webkit等供大家参考:
IE7浏览器默认CSS样式表
[dir=rtl] dd {
margin: 0 30pt 0 0;
}
[dir=rtl] menu {
margin: 14pt 30pt 14pt 0;
}
[dir=rtl] ol {
margin: 14pt 30pt 14pt 0;
}
[dir=rtl] ul {
margin: 14pt 30pt 14pt 0;
}
a {
color: #06C;
text-decoration: underline;
}
a:visited {
color: #80080;
}
address {
display: block;
font-style: italic;
}
b {
font-weight: bold;
}
bdo {
direction: rtl;
unicode-bidi: bidi-override;
}
blockquote {
display: block;
margin: 14pt 30pt;
}
body {
display: block;
margin: 15px 10px;
zoom: 1;
}
button {
background-color: #F0F0F0;
border-width: 2px;
font-family: sans-serif;
font-size: 10pt;
overflow: hidden;
text-align: center;
zoom: 1;
}
caption {
display: block;
padding: 1px 300zzz 500zzz;
text-align: center;
zoom: 1;
}
cite {
font-style: italic;
}
code {
font-family: monospace;
font-size: 10pt;
}
col {
border-color: #F0F0F0;
display: block;
}
colgroup {
border-color: #F0F0F0;
display: block;
}
dd {
display: block;
margin: 0 0 0 30pt;
}
del {
text-decoration: line-through;
}
dfn {
font-style: italic;
}
div {
display: block;
}
dl {
display: block;
margin: 14pt 0;
}
dt {
display: block;
}
em {
font-style: italic;
}
embed {
zoom: 1;
}
fieldset {
border-style: groove;
border-width: 2px;
display: block;
padding: 0 2px 3px;
zoom: 1;
}
form {
display: block;
margin: 14pt 0;
}
h1 {
display: block;
font-size: 24pt;
font-weight: bold;
margin: 14pt 0;
}
h2 {
display: block;
font-size: 18pt;
font-weight: bold;
margin: 14pt 0;
}
h3 {
display: block;
font-size: 13.55pt;
font-weight: bold;
margin: 14pt 0;
}
h4 {
display: block;
font-weight: bold;
margin: 14pt 0;
}
h5 {
display: block;
font-size: 10pt;
font-weight: bold;
margin: 14pt 0;
}
h6 {
display: block;
font-size: 7.55pt;
font-weight: bold;
margin: 14pt 0;
}
hr {
outline: 0 none;
text-align: center;
zoom: 1;
}
html {
overflow-x: auto;
overflow-y: scroll;
zoom: 1;
}
i {
font-style: italic;
}
iframe {
background-color: #FFF;
height: 150px;
width: 300px;
zoom: 1;
}
img {
zoom: 1;
}
input {
background-color: #FFF;
border-width: 2px;
font-family: sans-serif;
font-size: 10pt;
overflow: hidden;
padding: 1px;
zoom: 1;
}
ins {
text-decoration: underline;
}
kbd {
font-family: monospace;
font-size: 10pt;
}
legend {
padding: 0 2px;
zoom: 1;
}
li {
display: block;
}
menu {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: disc;
margin: 14pt 0 14pt 30pt;
}
object {
zoom: 1;
}
ol {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: decimal;
margin: 14pt 0 14pt 30pt;
}
optgroup {
font-family: sans-serif;
font-size: 10pt;
font-style: italic;
font-weight: bold;
}
option {
font-family: sans-serif;
font-size: 10pt;
font-style: italic;
font-weight: bold;
}
p {
display: block;
}
pre {
display: block;
font-family: monospace;
font-size: 10pt;
white-space: pre;
}
rp {
font-size: 6pt;
}
rt {
font-size: 6pt;
}
samp {
font-family: monospace;
font-size: 10pt;
}
select {
background-color: #FFF;
border-color: #FFF;
border-width: 2px;
font-family: sans-serif;
font-size: 10pt;
overflow: hidden;
zoom: 1;
}
small {
font-size: 10pt;
}
strong {
font-weight: bold;
}
sub {
font-size: 10pt;
}
sup {
font-size: 10pt;
}
table {
border-color: #F0F0F0;
display: block;
zoom: 1;
}
tbody {
border-color: #F0F0F0;
display: block;
}
td {
border-color: #F0F0F0;
display: block;
padding: 1px;
zoom: 1;
}
textarea {
background-color: #FFF;
border-width: 2px;
font-family: monospace;
font-size: 10pt;
overflow-x: hidden;
overflow-y: scroll;
padding: 2px;
white-space: pre;
zoom: 1;
}
tfoot {
border-color: #F0F0F0;
display: block;
}
th {
border-color: #F0F0F0;
display: block;
font-weight: bold;
padding: 1px;
text-align: center;
zoom: 1;
}
thead {
border-color: #F0F0F0;
display: block;
}
tr {
border-color: #F0F0F0;
display: block;
zoom: 1;
}
ul {
display: block;
list-style-image: none;
list-style-position: outside;
list-style-type: disc;
margin: 14pt 0 14pt 30pt;
}
var {
font-style: italic;
}