From d126563ef23f0555901d24fa0efa42e0af05e958 Mon Sep 17 00:00:00 2001 From: WilliamHVollita <william@WilliamHVollitadeiMac.local> Date: Tue, 2 Aug 2022 15:06:12 +0800 Subject: [PATCH] Upload From local development env --- wiki/pages/index.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/wiki/pages/index.html b/wiki/pages/index.html index e37c7b4..f9bc93a 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> -- GitLab