Skip to content

CSS (常用单词)

css
color
定义颜色
opacity
检索或设置对象的不透明度
font-size
定义字体大小
font-style
定义字体体风格例如斜体
font-weight
定义字体粗细
font-family
嵌入字体
text-indent
首行缩进
text-align
水平对其方式
text-overflow
文本溢出
text-shadow
文本阴影
white-space
处理换行和空格
line-height
行高
background
定义背景
background-color
指定背景颜色
background-image
背景图片
background-repeat
背景平铺排列
background-position
背景定位
background-attachment
背景是否固定
border
定义边框
border-color
边框颜色
border-radius
边框圆角
border-style
边框样式
border-image
边框图片
box-shadow
阴影
padding
内边距
margin
外边距
width
宽度
height
高度
max-width min-width
最大宽度 最小宽度
max-height min-height
最大高度 最小高度
display flex
弹性盒
flex-direction
调整主轴XY
flex-wrap
换行
justify-content
水平方位调整
align-items
垂直方位调整
flex-grow
调整比例
flex-shrink
flex 元素的收缩规则
flex-basis
指定 flex 元素在主轴方向上的初始大小
flex
三个属性合体flex-grow flex-shrink flex-basis
position
固定定位 相对定位 绝对定位 粘性定位
left  top bottom right
四个方位
z-index
定位层级
transform
旋转,缩放,倾斜或平移给定元素
transition
动画过度
animation
动画
linear-gradient()
颜色渐变
filter
背景模糊 变色等
calc()
计算函数
overflow
内容溢出操作
float
浮动
clear
清除浮动
长度 px rem em vh vw cm mm pt pc ch ex