On Safari Mobile 10.3 sticky footer can be scrolled off the screen

前端 未结 5 885
耶瑟儿~
耶瑟儿~ 2021-02-11 17:24

Our mobile web application has sticky bottom navigation like the one you often find in iOS applications, and after Safari 10.3 release on landscape only it is p

5条回答
  •  春和景丽
    2021-02-11 17:50

    I had the same problem and I fixed it in a way that my tester is happy. Not a perfect solution but doing its job.

    Add an empty element with some padding or margin.

    const _userAgent = navigator.userAgent.toLowerCase();
    if (_userAgent.indexOf('safari') != -1) {
        if (_userAgent.indexOf('chrome') == -1) {
            $('.myelem').append('
    '); } }

提交回复
热议问题