search

Home  >  Q&A  >  body text

css - 键盘弹出后,原本absolute底部固定栏被顶起

h5页面有个固定的顶部,当输入框输入焦点的时候,软键盘出来,原本的底部被顶起来了,显示在手机键盘的上面,有没有简单设置样式可以解决的方法。

ringa_leeringa_lee2781 days ago939

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:33:36

    Change to relative or not position when getting focus

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:33:36

    Don’t use absolute positioning. There will be problems with lower versions. Another thing is to pay attention to your html structure and don’t wrap the positioning

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:33:36

    Hide the fiexd element when the commonly used keyboard pops up, and optimize it by disappearing and displaying the keyboard

    reply
    0
  • 迷茫

    迷茫2017-04-17 14:33:36

    The status bar at the bottom is positioned with fixed

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 14:33:36

    Try not to use positioning as it is easy to cause problems. Just write according to the top-down structure. The input method pop-up will not affect it

    reply
    0
  • Cancelreply