我的html页面放到安卓手机上能够左右上下滑动露出白边,但需求不需要上下左右滑动,最后代码修改如下
body, html {
position: fixed;
top: 0px;
bottom: 0px;
width: 100%;
height: 100%;
}
我的html页面放到安卓手机上能够左右上下滑动露出白边,但需求不需要上下左右滑动,最后代码修改如下
body, html {
position: fixed;
top: 0px;
bottom: 0px;
width: 100%;
height: 100%;
}
本文标题:禁止安卓手机上页面滑动
本文链接:https://www.haomeiwen.com/subject/hnnmdqtx.html
网友评论