clamp 的三种配方

缩窄窗口:三条标题都会连续变小,并在上下限处停住。

clamp(1.5rem, 5vw, 3rem)

视口驱动

clamp(1.25rem, 1rem + 2vw, 2rem)

rem + vw 混合

clamp(1rem, 4vw, 1.5rem)

小范围