📜  vh 和 vw - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:39.055000             🧑  作者: Mango

代码示例1
/*vh viewport height and vw viewport width*/
/*example*/
div
{
  display: inline-block;
  height: 100vh; /*THis will set height equal to the height of windows*/
  width: 100vw/*This will set width equal to width of windows*/
}