Full height sections single page

僤鯓⒐⒋嵵緔 提交于 2021-01-27 11:30:49

问题


I am creating a responsive web site using Bootstrap.

The page is simple, yet there is a need for different sections on the same page, each section having a height of 100% screen height, så linking to a section anchor displays that section in 100% height and width. Width is no problem, but having multiple instances of height doesn't stack. Any tips on this issue?


回答1:


Found a solution - put this inside a jQuery score where you listen on resizing/load events.

$('page').css('min-height',$(window).height()+'px');

Where page is the div section you whish to target.



来源:https://stackoverflow.com/questions/16036836/full-height-sections-single-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!