Disabling android's chrome pull-down-to-refresh feature

前端 未结 15 2549
予麋鹿
予麋鹿 2020-12-02 04:20

I\'ve created a small HTML5 web application for my company.

This application displays a list of items and everything works fine.

The application is mainly us

15条回答
  •  無奈伤痛
    2020-12-02 04:31

    Note that overflow-y is not inherited, so you need to set it on ALL block elements.

    You can do this with jQuery simply by:

            $(document.body).css('overflow-y', 'hidden'); 
            $('*').filter(function(index) {
                return $(this).css('display') == 'block';
            }).css('overflow-y', 'hidden');
    

提交回复
热议问题