# css 单词 URL: https://chengjinfang.com/posts/2017/web-css1/ Author: 程锦方 Date: 2017-10-06 Tags: #note #css #web Summary: 整体 background 背景 none 不定义 style 样式 hidden 隐藏 visibility 能见度 display 显示 block 块 attribute 属性 repeat 重复 hue 色调 saturation 饱和度 lightness 亮度 gradient 坡度(用于渐变) skew ------------------------------------------------------------------------ ## 整体 background 背景 none 不定义 style 样式 hidden 隐藏 visibility 能见度 display 显示 block 块 attribute 属性 repeat 重复 hue 色调 saturation 饱和度 lightness 亮度 gradient 坡度(用于渐变) skew 歪斜 rotate 回转(用于3D转换) transition 过渡 polaroid 偏光 ## 位置 position 位置 direction 方向 align 排列 margin 边距 border 边框 outline 轮廓 center 居中 centered 中心 padding 填充 height 高度 width 宽度 z-index 图层顺序 top 上 bottom 下 left 左 right 右 top left 左上 bottom left 左下 radial 经向 position 位置 absolute 绝对 relative 相对 static 静态 fixed 固定 sticky 粘(向下或向上滚动到该元素,元素内容一直显示在顶部或底部) radius 半径(用于圆角) ## style dotted 虚线 solid 实线 gouble 双边框 groove 3D沟槽边框 ridge 3D凸边框 inset 3D凹边框 outset 3D开始边框 hidden 定义隐藏的边界 ## 文字 decoration 文字装饰(通常用于删除下划线) overline 上划线 line-through删除线 underline 下划线 transform 文本转换 uppercase 大写文字 lowercase 小写文字 capitalize 首字母大写 indent 缩进 spacing 字母间距 direction 更改元素文本方向(rtl到序) shadow 阴影 bold 粗体 ellipsis 省略 a:link 未访问的链接 a:visited 用户访问的链接 a:hover 当用户将鼠标悬停在其上时的链接 a:active 当点击它的一个链接 ### 表格 even 偶数 odd 单数 tr:hover 突出显示鼠标悬停的表格行(tr:hover {background-color: #f5f5f5}) :nth-child()斑马条纹表格(tr:nth-child(even) {background-color: #f2f2f2}) collapse 单边 ### 选择器 ```css [attribute="value"] ----------------------------- [title~="flower"] { border: 5px solid yellow; } ``` target 目标 ~= 用于选择与含有指定词的属性值的元素 |= 用于选择具有指定属性的元素开始的指定的值 ^= 用于选择其属性值开始于指定的值的元素 $= 用于选择其属性值与规定值结束的元素 *= 用于选择其属性值包含制定的值的元素 ## 动画 keyframes 关键帧 animation 动画 delay 延迟 function 功能 duration 持续时间 direction 方向 relative 相对 infinite 无穷 iteration 迭代 count 计数 state 状态 spacing 间距 shrink 收缩 ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml