CSS 选择器
.class 选择器
#id 选择器
* 选择器
element 选择器
element.class 属性
element,element 选择器
element element 选择器
element>element 选择器
element+element 选择器
element1~element2 选择器
[attribute] 选择器
[attribute=value] 选择器
[attribute~=value] 选择器
[attribute|=value] 选择器
[attribute^=value] 选择器
[attribute$=value] 选择器
[attribute*=value] 选择器
:active 选择器
:after 选择器
:before 选择器
:checked 选择器
:default 选择器
:disabled 选择器
:empty 选择器
:enabled 选择器
:first-child 选择器
:first-letter 选择器
:first-line 选择器
:first-of-type 选择器
:focus 选择器
:fullscreen 选择器
:hover 选择器
:in-range 选择器
:indeterminate 选择器
:invalid 选择器
:lang 选择器
:last-child 选择器
:last-of-type 选择器
:link 选择器
:not 选择器
:nth-child() 选择器
:nth-last-child() 选择器
:nth-of-type() 选择器
:nth-last-of-type() 选择器
:only-of-type 选择器
:only-child 选择器
:optional 选择器
:out-of-range 选择器
::placeholder 选择器
:read-only 选择器
:read-write 选择器
:required 选择器
:root 选择器
::selection 选择器
:target 选择器
:valid 选择器
:visited 选择器
CSS 变量教程
CSS 动画
CSS 函数
CSS 函数 - CSS常用知识记录 - 笔下光年
网站首页
CSS 函数
| 函数 | 描述 | CSS 版本 | |-----------------------------|---------------------------------------|---------| | attr() | 返回选择元素的属性值。 | 2 | | calc() | 允许计算 CSS 的属性值,比如动态计算长度值。 | 3 | | cubic-bezier() | 定义了一个贝塞尔曲线(Cubic Bezier)。 | 3 | | conic-gradient() | 定义了一个圆锥渐变。 | 3 | | counter() | 设置计数器。 | 3 | | hsl() | 使用色相、饱和度、亮度来定义颜色。 | 3 | | hsla() | 使用色相、饱和度、亮度、透明度来定义颜色。 | 3 | | linear-gradient() | 创建一个线性渐变的图像 | 3 | | max() | 从一个逗号分隔的表达式列表中选择最大的值作为属性的值。 | 3 | | min() | 从一个逗号分隔的表达式列表中选择最小的值作为属性的值。 | 3 | | radial-gradient() | 用径向渐变创建图像。 | 3 | | repeating-linear-gradient() | 用重复的线性渐变创建图像。 | 3 | | repeating-radial-gradient() | 类似 radial-gradient(),用重复的径向渐变创建图像。 | 3 | | repeating-conic-gradient() | 重复的圆锥渐变。 | 3 | | rgb() | 使用红(R)、绿(G)、蓝(B)三个颜色的叠加来生成各式各样的颜色。 | 2 | | rgba() | 使用红(R)、绿(G)、蓝(B)、透明度(A)的叠加来生成各式各样的颜色。 | 3 | | var() | 用于插入自定义的属性值。 | 3 |
上一篇:
CSS 动画