CSS 默认值参考手册
HTML 元素的 CSS 默认值
下表显示了所有 HTML 元素的默认 CSS 浏览器值。
元素 | 默认的 CSS 值 | TIY |
---|---|---|
a:link |
|
试一试 |
a:visited |
|
试一试 |
a:link:active | color: (internal value); | 试一试 |
a:visited:active | color: (internal value); | 试一试 |
abbr | None. | |
address |
|
试一试 |
area | display: none; | |
article | display: block; | |
aside | display: block; | |
audio | None. | |
b | font-weight: bold; | 试一试 |
base | None. | |
bdi | None. | |
bdo | unicode-bidi: bidi-override; | |
blockquote |
|
试一试 |
body |
|
试一试 |
body:focus | outline: none; | 试一试 |
br | None. | |
button | None | |
canvas | None. | |
caption |
|
试一试 |
cite | font-style: italic; | 试一试 |
code | font-family: monospace; | 试一试 |
col | display: table-column; | 试一试 |
colgroup | display: table-column-group | 试一试 |
datalist | display: none; | |
dd |
|
试一试 |
del | text-decoration: line-through; | 试一试 |
details | display: block; | |
dfn | font-style: italic; | 试一试 |
dialog | None. | |
div | display: block; | 试一试 |
dl |
|
试一试 |
dt | display: block; | 试一试 |
em | font-style: italic; | 试一试 |
embed:focus | outline: none; | |
fieldset |
|
试一试 |
figcaption | display: block; | |
figure |
|
试一试 |
footer | display: block; | |
form |
|
试一试 |
h1 |
|
试一试 |
h2 |
|
试一试 |
h3 |
|
试一试 |
h4 |
|
试一试 |
h5 |
|
试一试 |
h6 |
|
试一试 |
head | display: none; | |
header | display: block; | |
hr |
|
试一试 |
html |
|
|
i | font-style: italic; | 试一试 |
iframe:focus | outline: none; | |
iframe[seamless] | display: block; | |
img | display: inline-block; | 试一试 |
input | None. | |
ins | text-decoration: underline; | 试一试 |
kbd | font-family: monospace; | 试一试 |
label | cursor: default; | 试一试 |
legend |
|
试一试 |
li | display: list-item; | |
link | display: none; | |
main | None. | |
map | display: inline; | |
mark |
|
试一试 |
menu |
|
|
menuitem | None. | |
meta | None. | |
meter | None. | |
nav | display: block; | |
noscript | None. | |
object:focus | outline: none; | |
ol |
|
试一试 |
optgroup | None. | |
option | None. | |
output | display: inline; | |
p |
|
试一试 |
param | display: none; | |
picture | None. | |
pre |
|
试一试 |
progress | None. | |
q | display: inline; | 试一试 |
q::before | content: open-quote; | 试一试 |
q::after | content: close-quote; | 试一试 |
rp | None. | |
rt | line-height: normal; | |
ruby | None. | |
s | text-decoration: line-through; | 试一试 |
samp | font-family: monospace; | |
script | display: none; | |
section | display: block; | 试一试 |
select | None. | |
small | font-size: smaller; | 试一试 |
source | None. | |
span | None. | |
strike | text-decoration: line-through; | 试一试 |
strong | font-weight: bold; | 试一试 |
style | display: none; | |
sub |
|
试一试 |
summary | display: block; | |
sup |
|
试一试 |
table |
|
试一试 |
tbody |
|
|
td |
|
|
template | None. | |
textarea | None. | |
tfoot |
|
|
th |
|
|
thead |
|
|
time | None. | |
title | display: none; | |
tr |
|
|
track | None. | |
u | text-decoration: underline; | 试一试 |
ul |
|
试一试 |
var | font-style: italic; | 试一试 |
video | None. | |
wbr | None. |