通常通过jq来做,类似这样:

$('#navigation').css({ height: $(window).innerHeight() });

 

css3后,只需要用 下面这段样式即可

#navigation
{
  height:100vh;
}

 

更多详细资料参考:http://stackoverflow.com/questions/1575141/make-div-100-height-of-browser-window

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2021-05-31
  • 2021-07-17
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案