diff --git a/wiki/pages/index.html b/wiki/pages/index.html index e37c7b4a47288e8e64963301dfd52f95bb789502..f9bc93acac2fcb8c87c2ed03545da66103e0a23b 100755 --- a/wiki/pages/index.html +++ b/wiki/pages/index.html @@ -5,25 +5,22 @@ {% block page_content %} -<style> - .firstPage{ - /* 弹性布局 */ - display: flex; - /* 100%窗å£é«˜åº¦å’Œå®½åº¦ */ +<style type="text/css"> + section{ height: 100vh; width: 100vw; - /* 设置滚动贴åˆçš„æ–¹å¼ï¼Œæ²¿x轴滚动,mandatory表示强制滚动 */ + scroll-snap-align: center; scroll-snap-type: y mandatory; - /* 溢出时,水平ä¿ç•™æ»šåŠ¨æ¡ï¼Œåž‚ç›´éšè—æ»šåŠ¨æ¡ */ overflow-x: hidden; - overflow-y: hidden; - scroll-padding: 40px; + overflow-y: scroll; + scroll-padding: 80px; + } </style> -<div class="firstPage"> +<section> <h1> Cancer ! </h1> -</div> +</section> <p>hel1</p> <p>hel1</p> <p>hel1</p>