码迷,mamicode.com
首页 > Windows程序 > 详细

Make div 100% height of browser window/设置div等于浏览器的高度

时间:2015-12-22 22:54:54      阅读:259      评论:0      收藏: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

Make div 100% height of browser window/设置div等于浏览器的高度

标签:

原文地址:http://www.cnblogs.com/hzj680539/p/5068100.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!