Calculate CSS clamp() values in your browser — find the responsive min, preferred and max for any range.
clamp(min, preferred, max),结果被限制在 [min, max] 之间。2vw + 1rem),随视口平滑变化。| Item | Formula / Note | Source / Standard |
|---|---|---|
| Definition | clamp(x, lo, hi) = min(max(x, lo), hi) | CSS Values and Units Level 4 |
| Parameter order | requires lo <= hi; otherwise results are implementation-defined | CSS Values and Units Level 4 |
| Numeric edges | NaN propagates through comparisons and needs handling | IEEE 754-2008 |