Viewport-Percentage (or Viewport-Relative) Lengths
Viewport-Percentage Lengths:
The viewport-percentage lengths are relative to the size of the initial containing block. When the height or width of the initial containing block is changed, they are scaled accordingly.
vh
(viewport height)vw
(viewport width)vmin
(viewport minimum length)vmax
(viewport maximum length)
What exactly is vmin
and vmax
?
1vmin
assumes a value of the smallest between1vh
and1vw
.-
1vmax
assumes a value of the largest between1vh
and1vw
.
FROM stackoverflow
转载于:https://www.cnblogs.com/hzj680539/p/5068100.html
原文链接:https://blog.csdn.net/weixin_30342827/article/details/95833222
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~