CSS Functional Notation - CSS: Cascading Style Sheets 编辑
CSS functional notation is a type of CSS value that can represent more complex data types or invoke special data processing or calculations.
Syntax
selector { property: functional-notation( [argument]? [, argument]! ); }
The syntax starts with the name of the functional notation, followed by a left parenthesis (
. Next up are the notation argument(s), and the function is finished off with a closing parenthesis )
.
Functions can take multiple arguments, which are formatted similarly to CSS property values. Whitespace is allowed, but they are optional inside the parentheses. In some functional notations multiple arguments are separated by commas, while others use spaces.
Index
Functional notation defined by a set of CSS specifications includes the following:
A
- abs() (math)
- acos() (math)
- annotation() (font)
- asin() (math)
- atan() (math)
- atan2() (math)
- attr() (math)
B
- blur() (filter)
- brightness() (filter)
C
- calc() (math)
- character-variant() (font)
- circle() (shape)
- clamp() (math)
- color() (colors)
- conic-gradient()
- cos() (math)
- counter()
- counters()
- contrast() (filter)
- cross-fade()
- cubic-bezier()
D
- device-cmyk() (colors)
- drop-shadow() (filter)
E
F
G
- grayscale() (filter)
H
- hsl() (colors)
- hsla() (colors)
- hue-rotate() (filter)
- hwb() (colors)
- hypot() (math)
I
- image()
- image-set()
- inset() (shape)
- invert() (filter)
L
M
O
- opacity() (filter)
- ornaments() (font)
P
- paint()
- path() (shape)
- perspective() (transform)
- polygon() (shape)
- pow() (math)
R
- radial-gradient()
- rem() (math)
- repeat()
- repeating-linear-gradient()
- repeating-radial-gradient()
- repeating-conic-gradient()
- rgb() (colors)
- rgba() (colors)
- rotate() (transform)
- rotate3d() (transform)
- rotateX() (transform)
- rotateY() (transform)
- rotateZ() (transform)
- round() (math)
S
- saturate() (filter)
- scale() (transform)
- scale3d() (transform)
- scaleX() (transform)
- scaleY() (transform)
- scaleZ() (transform)
- sepia() (filter)
- sign() (math)
- sin() (math)
- skew() (transform)
- skewX() (transform)
- skewY() (transform)
- sqrt() (math)
- steps()
- styleset() (font)
- stylistic() (font)
- swash() (font)
- symbols()
T
- tan() (math)
- target-counter()
- target-counters()
- target-text()
- toggle()
- translate() (transform)
- translate3d() (transform)
- translateX() (transform)
- translateY() (transform)
- translateZ() (transform)
U
V
Specifications
Specification | Status | Comment |
---|---|---|
CSS Values and Units Module Level 4 | Editor's Draft | Adds toggle() , attr() , calc() , min() , max() , clamp() , round() , mod() , rem() , mod() , sin() , cos() , tan() , asin() , acos() , atan() , atan2() , pow() , sqrt() , hypot() , log() , exp() , abs() and sign() functional notation. |
CSS Values and Units Module Level 3 | Candidate Recommendation | Adds calc() functional notation. |
CSS Color Module Level 4 | Working Draft | Adds commaless syntaxes for the rgb() , rgba() , hsl() , and hsla() functional notation.Allows alpha values in rgb() and hsl() , turning rgba() and hsla() into (deprecated) aliases for them.Adds hwb() , device-cmyk() , and color() functions. |
CSS Color Module Level 3 | Recommendation | Adds rgba() , hsl() , hsla() functional notation. |
CSS Images Module Level 4 | Working Draft | Adds element() , image() , image-set() and conic-gradient() functional notation. |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论