问题描述:
头部fixed定位, 滚动页面时头部出现抖动
解决方案:
css设置局部滚动(不要让整个页面滚动,只滚动不是fixed的部分)
body { overflow-y: hidden; }
head { position: fixed; height:60px }
contentScroll { position: absolute; top: 60px; left: 0; bottom: 0; overflow-y: scroll; }
问题描述:
头部fixed定位, 滚动页面时头部出现抖动
解决方案:
css设置局部滚动(不要让整个页面滚动,只滚动不是fixed的部分)
body { overflow-y: hidden; }
head { position: fixed; height:60px }
contentScroll { position: absolute; top: 60px; left: 0; bottom: 0; overflow-y: scroll; }