1.scrollView () method does not solve the problem that
2.js cannot get the height of the soft keyboard, and ios cannot trigger the resize event
1.scrollView () method does not solve the problem that
2.js cannot get the height of the soft keyboard, and ios cannot trigger the resize event
I've studied this problem before, and under iOS, you can solve it with scrollIntoView ()
.
for the Android platform, I assume by default that the height of the soft keyboard will not exceed half the height of the screen, so first use clickedElement.getBoundingClientRect (). Top
to calculate the height of the clicked element from the top of the screen, and if the distance is less than half the height of the screen, use scrollTop ()
to move it up a certain distance. Because Android does not support the scrollBy ()
method during testing on an Android real machine, the scrollTop ()
method is used.
also organized into an article and put it here: Click the input box to automatically move the page up to the top of the soft keyboard .
I contentWindow to get the elements of the page in iframe. this error will be reported if there is no cross-domain in the chrome browser: ERROR DOMException: Blocked a frame with origin "http: localhost:8100 " from accessing a cross-origin frame. , ...
The 1.h5 page uses jquery s $.get () to load the page content. The project needs to use a mixture of h5 and App to develop the page, but the page content is occasionally blank in the App (IOS system), and the title disappears (becomes.) 2. The above si...
can you click this close button to pop up a pop-up window? Ask the user if it is closed, make sure it is closed, and cancel it. For example, when the user is filling in the user information, click the close button to ask whether the user is closed. ...
H5 page is compatible with the mobile end, and the media query used has no problem on Android, but on ios, the page layout displayed is still PC side. It seems that meta name= "viewport " does not work. Which god guides the reason ...
the style displayed on the ios shows the result of the style on the PC side. I use var nWidth = window.innerWidth in the js file | | document.documentElement.clientWidth; if(nWidth > 500){ alert( pc ) }else{ alert( miblie ) } pc ...
when doing the daily input box and comment box, the contenteditable attribute is used, and then the input box is focused by adding $( "- sharpdiv "). Focus () method) to the input box when the user clicks on the page. But interestingly, the focus amount...
that s the question! mixed development, embed the vue single page that I wrote through webview, but found that $router.go (- 1) is invalid and can t be used, but I have no problem in Android and browser ...
problem description H5 page runs on IOS, what if some content at the bottom of the page is obscured? No problem on Android, everything is fine! as shown in figure: IOS: on Android obviously, the button at the bottom is blocked from running on IOS...
[ description ]: axios sets the error that responseType:blob, expects to report to the backend when downloading fails. but at this time, the error message returned by the backend has been converted to blob object. How to transfer the blob object back ...
for example, use window.location.href to open this address: "http: srv-file.lehuomao.com R.FhLetITQrMkKPH7J6-gz_qu3Rdbx.8IqVjCe?attname=114935985_0-1524097469-31b1c44e-63ff-ecea_00001.ts&e=1544177078&token=A-SxvcKX-cElDR8djvNfz0BbAx0-tsc5iD9gf7qq:_B...
1. Describe the problem requirements as above, and the backend interface needs my post format as follows: { type : *** , list : [ { filename : *** , filedata : File } ] } 2. I have...
iphone uses download with a tag as well as address jump and iframe to directly open files and kneel for answers. How to use js to download files on iphone browsers ...
when a video is played you want to stop playing a video by clicking on a location using VideoContext.stop () has no effect at all see someone offering this idea: _this.videoContext.seek(0) _this.videoContext.pause(); ** * * * palyVi...