Skip to content

Instantly share code, notes, and snippets.

@xhsdnn
Created October 31, 2019 07:11
Show Gist options
  • Save xhsdnn/04245a32001128b231bb9f61f673c596 to your computer and use it in GitHub Desktop.
Save xhsdnn/04245a32001128b231bb9f61f673c596 to your computer and use it in GitHub Desktop.
/* 切换滚动条页面闪动 */
html {
overflow-y: scroll;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body {
position: absolute;
}
body {
width: 100vw;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment