本文介绍: css属性在没有设置的时候,也是有值的,这就是默认值。列在下面,方便查看。
css属性在没有设置的时候,也是有值的,这就是默认值。列在下面,方便查看。
元素 |
默认的 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://blog.csdn.net/qq_40071585/article/details/135813236
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_61567.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。