diff --git a/src/components/Popup/index.scss b/src/components/Popup/index.scss index 8737eeb4e..2fafe5201 100644 --- a/src/components/Popup/index.scss +++ b/src/components/Popup/index.scss @@ -7,7 +7,9 @@ $baseContentClass: 'vant-popup__content'; .#{$baseContainerClass} { visibility: hidden; - position: absolute; + position: fixed; + top: 0; + left: 0; height: 100vh; width: 100vw; z-index: 10; @@ -43,6 +45,10 @@ $baseContentClass: 'vant-popup__content'; .closeIcon { position: absolute; z-index: 2; + + i { + cursor: pointer; + } } }