V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
lullabyO
V2EX  ›  程序员

H5 应用的输入框点击后被输入法盖住了,有什么比较完美的解决方法吗?

  •  
  •   lullabyO · Oct 19, 2014 · 17137 views
    This topic created in 4214 days ago, the information mentioned may be changed or developed.
    如题,求解~
    6 replies    2016-09-13 11:16:15 +08:00
    lullabyO
        1
    lullabyO  
    OP
       Oct 19, 2014
    想到可以通过获取输入法的高度和输入框的高度来调整输入框距底部的高度,但是没有找到怎么获取输入法高度的方法,求解~
    jsonline
        2
    jsonline  
       Oct 19, 2014
    你用了 position fixed?
    lullabyO
        3
    lullabyO  
    OP
       Oct 20, 2014
    @jsonline 恩,用了fixed会影响吗?
    jsonline
        4
    jsonline  
       Oct 20, 2014 via Android
    @lullabyO 不用 fixed 就没这个问题了
    lullabyO
        5
    lullabyO  
    OP
       Oct 20, 2014
    @jsonline 嗯,解决啦!么么哒!
    Mrpohai
        6
    Mrpohai  
       Sep 13, 2016
    @lullabyO 怎么解决的,我也遇到这个问题了,还有,我用 fixed 定位后(将输入框定位在底部,安卓网上拉,拉倒底部就拉不动了。苹果还拉动。我不想让他还能网上拉怎么办
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2335 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:02 · PVG 09:02 · LAX 18:02 · JFK 21:02
    ♥ Do have faith in what you're doing.