出現的問題:
在微信公衆號ios詳情回到列表頁的時候,會多出了底部返回導航欄,導致內容往上的走:
(目前微信的版本是:6.6.7)
解決方法:
html,body {
height:100%
}
app {
height:100%
}
然後在列表頁使用flex佈局。
<div style="display:flex;flex-direction: column;height:100%;">
<div class="tab"></div>
<div class="mescroll" id="mescroll" :style="{height: `${scrollHeight}px`,flex:1}">
</div>
</div>