关于H5页面在IOS系统中屎坑

1)position:fixed无效

    在滚动的时候,将该元素el的position 更改为absolute; 

    var scroll = document.documentElement.scrollTop || document.body.scrollTop;

    //导航的高度
    var nav = 44, top;

    //网页可见高度+滚动条高度 - 导航条的高度
    top = window.innerHeight+scroll - nav;
   $('el').css({'top': top+'px' });

    //将该事件绑定到滚动上

    window.onscroll = 上面事件;

2)倒计时问题

     IOS不支持时间格式为 2018-11-05 00:00:00  ,所以你要更改为  2018/11/05 00:00:00

原文地址:https://www.cnblogs.com/sunqq/p/9910280.html