I thought it could be realized by CSS, but it turned out to be the opposite. Finally, I still rely on JS
//Block the default processing method (prevent the effect of pull-down sliding)
//The passive parameter cannot be omitted. It is compatible with IOS and Android
document.body.addEventListener('touchmove', function (e) {
e.preventDefault();
}, {passive: false});