您现在的位置是: 首页 >  技术分享 > 

ios position = fixed 滑动防抖
传说中的小明 2023-10-18 18:01:06

页面布局  如下:
<header></header>
<div></div>
<footer></footer>


样式如下:

header {

        positionfixed;

        top0;

}

div {

        positionabsolute;

        width100%;

        left0;

        right0;

        top0;

        bottom0;

        overflow-yscroll;

        -webkit-overflow-scrollingtouch;

        /* 解决ios滑动不流畅问题 */

}

.footer {

        positionfixed;

        bottom0;

}


Copyright © 2021
www.yunyakeji.cn All rights reserved. 小明博客 豫ICP备2020029140号-1