1、挪动端解决目录拖动的情况下,手机微信底下有自带的回到网页页面按钮,常常会被遮挡住,遇到显示屏长1点的,下面会短1大截,下列用此方式能够处理。
.container{
position:relative;
background:url(../img/chooseBg.jpg) no-repeat center center;
background-size:cover;
width:100%;
height:100%;
//.listConHeight{
// height:9rem;
// overflow:auto;
//}
.listConHeight {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding-top: 1.3rem;
box-sizing: border-box;
ul {
width:6.78rem;
height: 100%;
margin:0 auto;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
}
总结
以上所述是网编给大伙儿详细介绍的css目录拖动避免被底部遮挡住和兼容显示屏长1点的机型解决 ,期待对大伙儿有一定的协助,假如大伙儿有任何疑惑请给我留言,网编会立即回应大伙儿的。在此也十分谢谢大伙儿对脚本制作之家网站的适用!
假如你感觉本文对你有协助,欢迎转载,烦请注明出处,感谢!