CSS3 动画属性(Animation)
属性名称 | 默认值 |
---|---|
animation | none 0 ease 0 1 normal |
默认值对应的6个属性依次为:
- animation-name
- animation-duration
- animation-timing-function
- animation-delay
- animation-iteration-count
- animation-direction
CSS 背景属性(Background)
属性名称 | 默认值 |
---|---|
background-color | transparent |
background-image | none |
CSS border 属性
属性名称 | 默认值 |
---|---|
border | not specified(未指定) |
Color 属性
属性名称 | 默认值 |
---|---|
opacity | 1 |
CSS 尺寸属性(Dimension)
属性名称 | 默认值 |
---|---|
height | auto(默认,浏览器会计算出实际的高度) |
max-height | none |
max-width | none |
min-height | 0 |
min-width | 0 |
width | auto(默认,浏览器会计算出实际的宽度) |
CSS 字体属性(Font)
属性名称 | 默认值 |
---|---|
font | not specified(未指定) |
font-family | not specified(未指定) |
font-size | medium |
font-style | normal |
font-weight | normal |
CSS 列表属性(List)
属性名称 | 默认值 |
---|---|
list-style | disc outside none |
默认值对应的3个属性依次为:
- list-style-type
- list-style-position
- list-style-image
CSS 外边距属性(Margin)
属性名称 | 默认值 |
---|---|
margin | 0 |
CSS 内边距属性(Padding)
属性名称 | 默认值 |
---|---|
padding | 0 |
CSS 定位属性(Positioning)
属性名称 | 默认值 |
---|---|
float | none |
clear | none |
cursor | auto(默认,浏览器设置的光标) |
display | static |
overflow | visible(默认值,内容不会被修剪,会呈现在元素框之外) |
vertical-align | baseline(默认,元素放置在父元素的基线上) |
z-index | auto(默认,堆叠顺序与父元素相等) |
top | auto(默认值,通过浏览器计算边缘的位置) |
right | auto(默认值,通过浏览器计算边缘的位置) |
bottom | auto(默认值,通过浏览器计算边缘的位置) |
left | auto(默认值,通过浏览器计算边缘的位置) |
CSS 文本属性(Text)
属性名称 | 默认值 |
---|---|
color | not specified(未指定) |
direction | ltr(默认,文本方向从左到右) |
letter-spacing | normal |
line-height | normal |
text-align | 如果 direction 属性是 ltr,则默认值是 left;如果 direction 是 rtl,则为 right |
text-transform | none |
text-outline | none |
text-shadow | none |
text-wrap | normal(只在允许的换行点进行换行) |
2D/3D 转换属性(Transform)
属性名称 | 默认值 |
---|---|
transform | none |
过渡属性(Transition)
属性名称 | 默认值 |
---|---|
transition | all 0 ease 0 |
默认值对应的4个属性依次为:
- transition-property
- transition-duration
- transition-timing-function
- transition-delay
用户界面属性(User-interface)
属性名称 | 默认值 |
---|---|
box-sizing | content-box(这是由 CSS2.1 规定的宽度高度行为。宽度和高度分别应用到元素的内容框。在宽度和高度之外绘制元素的内边距和边框) |