重点就是
overflow-anchor: none;
body{
overflow-anchor: none;
}
/*
需要用到的页面
*/
.name{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /*颜色可以随意*/
}
重点就是
overflow-anchor: none;
body{
overflow-anchor: none;
}
/*
需要用到的页面
*/
.name{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /*颜色可以随意*/
}