在Ios APP中打开H5 页面,fixed定位随滚动失效
<div class="container" id="container">
……
内容
……
</div>
<div class="footer" id="contact_manage">
<a href="#" class="goHome">首页</a>
<a href="#" class="contact_manage">联系客户经理</a>
</div>
样式:
.container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
overflow-y: scroll;
-webkit-overflow-scrolling: auto; }
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 999;
width: 100%;
height: 0.1466666667rem;
font-size: 0;
display: none; }
问题是:页面container滚动的时候footer 会随着页面移动,停止滚动了,footer才会回到底部。只有在原生APP里打开是这样,web浏览器打开没有这问题。请大神指点下怎么解决???