Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
<integer> は CSS のデータ型で、 <number> の特殊型であり、正と負の整数を表現します。整数は数多くの CSS プロパティや記述子で使用することができます。例えば column-count, counter-increment, grid-column, grid-row, z-index プロパティや range 記述子などです。
<integer> データ型は 1 桁から数桁の 10 進数、 0 から 9 までを含み、任意でその前に単一の + または - の符号が付きます。整数に関連付けられた単位はありません。
メモ: 有効な <integer> の値の公式な範囲はなく、仕様書は範囲を指定していません。
アニメーション時には、 <integer> データ型の値は離散的に整数を使用して補間されます。実数、すなわち浮動小数点で計算が行われた場合、離散値は floor 関数を使って求められます。補間の速度は、アニメーションに結びつけられたイージング関数で決められます。
| CSS Values and Units Module Level 4 # integers |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年1月7日 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.