时间: 2020-11-23|67次围观|0 条评论

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 between 1vh and 1vw.
  • 1vmax assumes a value of the largest between 1vh and 1vw.

FROM stackoverflow

转载于:https://www.cnblogs.com/hzj680539/p/5068100.html

原文链接:https://blog.csdn.net/weixin_30342827/article/details/95833222

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《Make div 100% height of browser window/设置div等于浏览器的高度
   

还没有人抢沙发呢~