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;
}
}
转载于:https://www.cnblogs.com/huanghuamei206023/p/11156148.html