我的网站不在滚动的Android手机(Chrome浏览器)它正在UC浏览器,Safari。完美的笔记本电脑工作。网页未滚动android手机(HTML/CSS/JS)
帮助我解决这个问题
我经历了许多的答案了,但我不能找到任何出路。
有一个在我的style.css一些问题
我的style.css
我的网站不在滚动的Android手机(Chrome浏览器)它正在UC浏览器,Safari。完美的笔记本电脑工作。网页未滚动android手机(HTML/CSS/JS)
帮助我解决这个问题
我经历了许多的答案了,但我不能找到任何出路。
有一个在我的style.css一些问题
我的style.css
你需要媒体查询添加到身体
body {
background: #0f0f0f;
overflow-y: hidden;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-ms-transition: all .3s;
-o-transition: all .3s;
}
溢出-Y:隐藏;防止你的Android浏览器scroling 所以,你需要或者删除此hiddend或添加meddia查询
@media screen and (max-width: 480px) {
body {
overflow-y: scroll;
}
}
试着在你的身体使用一个类似下面,HTML。
body
{
background: #0f0f0f;
min-height:100%; height:100%;
overflow:scroll;
display:block;
-webkit-transition: all .3s;
-moz-transition: all .3s;
-ms-transition: all .3s;
-o-transition: all .3s;
}
这是否工作?让我们知道如果你有别的东西没有工作 –
Thinks alooot its working,I have done Overflow:scroll; –
请将此答案标记为正确。谢谢 –