After Apple phone micro-channel browser select the tab page is not automatically choose to complete back in place

 

Description:

html select default selection box control is the bottom of the pop-up drop-down selection in the IOS browser.

Such dislocation to the page position, corresponding to the number of elements in the click event does not respond after the end of the selection.

 

This looks a big problem, but after the selection is complete click OK to submit pop-up box button, then it is very likely not the last page (because the page is already moving up the) button on the box so it will fail. solution:

Click OK to make the page when submitted back in place

When js click:

window.scrollTo(0, document.body.scrollTop + 1);

document.body.scrollTop >= 1 && window.scrollTo(0, document.body.scrollTop - 1);



Author: Dandelion _d212
link: https: //www.jianshu.com/p/be498518a78e
Source: Jane books
 
 
More:

Guess you like

Origin www.cnblogs.com/tianma3798/p/10967454.html