Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
CSSNumericValue は CSS 型付きオブジェクトモデル APIのインターフェイスで、すべての数値型が実行することができる操作を表します。
CSSStyleValue CSSNumericValue以下は、 CSSNumericValue インターフェイスをベースとするインターフェイスの一覧です。
なし。
提供された数値を CSSNumericValue へ加算します。
CSSNumericValue.sub提供された数値を CSSNumericValue から減算します。
CSSNumericValue.mulCSSNumericValue に提供された数値を乗算します。
CSSNumericValue.divCSSNumericValue を提供された数値で除算します。
CSSNumericValue.min渡された最小値を返します。
CSSNumericValue.max渡された最大値を返します。
CSSNumericValue.equalsすべての値がまったく同じ型と値で、同じ順序であれば true です。そうでなければ、false です。
CSSNumericValue.tovalue を指定された単位に変換します。
CSSNumericValue.toSum既存の CSSNumericValue を指定された単位の値の CSSMathSum オブジェクトへ変換します。
CSSNumericValue.typeCSSNumericValue の型を、 angle, flex, frequency, length, resolution, percent, percentHint, time の何れかから返します。
CSSNumericValue を CSS の文字列から直接構築します。
| CSS Typed OM Level 1 # numeric-value |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2022年10月1日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.