CSSNumericValue - Web APIs 编辑
Draft
This page is not complete.
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The CSSNumericValue
interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
Interfaces based on CSSNumericValue
Below is a list of interfaces based on the CSSNumericValue interface.
CSSMathClamp
CSSMathInvert
CSSMathMax
CSSMathMin
CSSMathNegate
CSSMathProduct
CSSMathSum
CSSMathValue
CSSNumericArray
CSSUnitValue
Properties
None.
Event handlers
No
Methods
CSSNumericValue.add
- Adds a supplied number to the
CSSNumericValue
. CSSNumericValue.sub
- Subtracts a supplied number from the
CSSNumericValue
. CSSNumericValue.mul
- Multiplies the
CSSNumericValue
by the supplied value. CSSNumericValue.div
- Divides the
CSSNumericValue
by the supplied value. CSSNumericValue.min
- Returns the minimum value passed
CSSNumericValue.max
- Returns the maximum value passed
CSSNumericValue.equals
- True if all the values are the exact same type and value, in the same order. Otherwise, false.
CSSNumericValue.to
- Converts
value
into another one with the specified unit. CSSNumericValue.toSum
- TBD
CSSNumericValue.type
- TBD
CSSNumericValue.parse
- Allows a
CSSNumericValue
to be constructed directly from a string containing CSS.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Typed OM Level 1 The definition of 'CSSNumericValue' in that specification. | Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See Also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论