From 5ae24d1dbd90bc072e47e4b1664d37c9dfb62e1f Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Fri, 26 Aug 2022 11:28:25 +0800 Subject: [PATCH] fix: page scroll unexpected in iframe --- public/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/public/index.html b/public/index.html index 76c45953..cdba85b4 100644 --- a/public/index.html +++ b/public/index.html @@ -104,6 +104,13 @@ body { overflow: hidden; + width: 100%; + height: 100%; + } + + body.iframe { + position: fixed; + top: 0; } a { @@ -132,5 +139,11 @@ To create a production bundle, use `npm run build` or `yarn build`. --> + \ No newline at end of file