css属性在没有设置的时候,也是有值的,这就是默认值。列在下面,方便查看。
元素文章来源:https://www.toymoban.com/news/detail-824256.html |
默认的 CSS 值 |
---|---|
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. |
小结
尽量记住这些默认值。文章来源地址https://www.toymoban.com/news/detail-824256.html
到了这里,关于编程笔记 html5&css&js 054 CSS默认值的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!