[英]Scroll 100% height of the block
当我必须上下滚动时,如何使我的Avada(或自定义Wordpress主题)滚动100%高度div以达到浏览器的全高度?
先感谢您
现场例子
您有两种选择:
1º-使用CSS,使用视口单位(vw,vh)
section { width: 100vw; height: 100vh; } section.one { background: red; } section.two { background: grey; } section.three { background: blue; }
DEMO
2º -与jQuery使用fullpage.js脚本
[英]110% height vs 100% scroll
[英]horizontal scroll with height fixed on 100%
[英]scroll down to document height but + 100
[英]100% height on body and html creates scroll issue
[英]Div 100% page height, no vertical scroll
[英]JS - iframe height with 100% and no scroll (Scroll-y in body)
[英]3 row layout, 100% height: 1 auto, 1 auto with scroll, 1 fixed
[英]Scrollable left column w/ 100% remaining screen height, scroll issue
[英]Unable to scroll down 100% height section using iOS
[英]Scroll to top arrow is hidden on html, body 100% height
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.