我发现很难删除移动设备上的水平滚动条,我真的需要一些可以帮助我删除它的工具,我们将不胜感激。
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=no">
CSS
{
margin:0;
padding:0;
}
body
{
overflow-x:hidden;
overflow-y:scroll;
width:100%;
}
.header
{
background-image:linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(../img/website-startups.jpg);
height:100vh;
background-position: center;
background-size: cover;
}
最佳答案
这将为您禁用滚动条
::-webkit-scrollbar {
display: none;
}
关于html - 去除手机水平滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44914381/