CSSの上書きでプロパティの値を初期値に戻したい時がよくあるので、個人的に使いそうなプロパティを抜粋して初期値をまとめてみました。
プロパティ一覧
content | normal |
---|---|
list-style | none(下記プロパティを参照) |
list-style-type | disc |
list-style-image | none |
list-style-position | outside |
display | inline |
transform | none |
transform-origin | 50% 50% 0 |
transform-style | flat |
text-transform | none |
animation | none(下記プロパティを参照) |
animation-name | none |
animation-duration | 0s |
animation-timing-function | ease |
animation-delay | 0s |
animation-iteration-count | 1 |
animation-direction | normal |
transition | none(下記プロパティを参照) |
transition-property | all |
transition-duration | 0s |
transition-timing-function | ease |
transition-delay | 0s |
position | static |
top | auto |
right | auto |
bottom | auto |
left | auto |
z-index | auto |
float | none |
clear | none |
width | auto |
min-width | 0 |
max-width | none |
height | auto |
min-height | 0 |
max-height | none |
box-sizing | content-box |
line-height | normal |
vertical-align | baseline |
overflow | visible |
overflow-x | visible |
overflow-y | visible |
text-overflow | clip |
visibility | visible |
margin | 0 |
padding | 0 |
border | none(下記プロパティを参照) |
border-width | medium |
border-color | |
border-style | none |
border-radius | 0 |
cursor | auto |
color | |
font-size | medium |
font-weight | normal |
font-style | normal |
font-size-adjust | none |
text-decoration | none |
text-indent | 0 |
text-align | start |
word-break | normal |
text-wrap | normal |
word-wrap | normal |
white-space | normal |
text-justify | auto |
letter-spacing | normal |
word-spacing | normal |
text-shadow | none |
opacity | 1.0 |
filter | none |
-ms-filter | none |
background | none(下記プロパティを参照) |
background-color | transparent |
background-image | none |
background-repeat | repeat |
background-attachment | scroll |
background-position | 0% 0% |
background-clip | border-box |
background-origin | padding-box |
background-size | auto auto |
box-shadow | none |
【参考サイト】
コメントが承認されるまで時間がかかります。