Suning “sells unable to sell”

2023-01-21   ES  

code is as follows ::

// CSS
.scrollWrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top:0;
}
bottomInput {
    position: absolute;
    bottom:0;
    left:0;
    right: 0;
}

// HTML
<body>
    <div class="scrollWrapper">
        <div class="bottomInput">
            <input type="text" placeholder="input"/>
        </div>
    </div>
</body>

// javascript
// Get the focus in the input box. After the keyboard is bounced, it is really a line of code
var interval = setInterval(function() {
    document.body.scrollTop = document.body.scrollHeight
}, 100)

Several causes: 1. On the mobile terminal (iOS) Flex attribute, it is compiled into absolute

2、 
IOS machines with third -party input method will also have a keyboard pop -up delay, which causes the keyboard to be blocked by the keyboard in the position of the general layout input box (INPUT/Textarea, etc.).
Reasons:

source

Related Posts

Core thread of the pool pool pool

java implementation of unicode and Chinese mutual conversion

Linux/CentOS system hangs a new hard disk simple tutorial (detailed)

Quartz Deploy Table ‘HeartBeat.qrtzLocks’ DOESN’T Exist

Suning “sells unable to sell”

Random Posts

CentOS7+Install Docker, and deploy it as a Docker mirror of the Note Service side

docker basic learning

CHROME Performance Analysis Panel Performance

python+pycharm and Visualstudio C ++ community version uses PK and confusing grammar problems

html -mobile terminal