in mobile development, as long as the input gets the focus, the keyboard will pop up to top the page, and the page will still be in the top state when it loses focus. Is there any good way to get him back.
in mobile development, as long as the input gets the focus, the keyboard will pop up to top the page, and the page will still be in the top state when it loses focus. Is there any good way to get him back.
use fixed positioning position: absolute;
call the following method after input initialization
// iosinputfixed
_fixIosInputH () {
// ios
if (!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
let [timeout, beforeTop] = [null, 0]
$('input, textarea').on('focus', () => {
beforeTop = document.body.scrollTop
clearTimeout(timeout)
}).on('blur', () => {
timeout = setTimeout(() => {
document.body.scrollTop = beforeTop
}, 100)
})
}
}
brief: because Mini Program s project uses wepy s framework, but you don t quite understand that the role of this interceptor is to integrate all the interfaces? Or? ...
what if what I want to do is the effect of text wrapping, but it s not aligned in developer tools? I don t know why has no problem on the mobile phone. Do you have any advice from Boss CSS? ...
step: 1. First, npm install webpack-g 2. Later, npm install webpack@1.15.0 was installed locally-- save-dev 3. Then execute webpack-v 4. Prompt: The CLI moved into a separate package: webpack-cli Would you like to install webpack-cli? (That will ...
I would like to ask js how to upload multiple pictures which have been selected by Filter? I m going to get the original name of the uploaded picture, and then match it with the name of the currently uploaded picture, but all I get is the name of the ...
the audio of js cannot play the ts audio file in m3u8. How to solve this problem? For more information about m3u8 files, please see this article: https: blog.csdn.net pangrui.. <!DOCTYPE HTML> <html> <head> <meta charset="ut...