search

Home  >  Q&A  >  body text

javascript - The keyboard cannot pop up when input type="number" on the mobile terminal

Have you ever encountered a situation where the keyboard cannot be popped up when input type="number" is entered on the mobile terminal?

<!--<!DOCTYPE html>-->
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>demo</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">

  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .yy_item {
      margin-top: 200px;
    }
  </style>
</head>

<body>

  <p class="container">

    <p class="yy_item">
      测试
    </p>
    <p class="yy_item">
      测试
    </p>
    <p class="yy_item">
      测试
    </p>
    <p class="yy_item">

      <p class="clearfix">
        <label for="age">年龄</label>
        <input id="age" name="age" placeholder="请输入年龄" type="number" value="">
      </p>

    </p>


    <p class="btn-group">
      <input type="submit" class="btn btn-submit" value="测试">
    </p>

  </p>


</body>

</html>
phpcn_u1582phpcn_u15822788 days ago624

reply all(6)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:39:01

    I haven’t encountered this situation
    You can try other types to see if the keyboard can pop up, such as: tel, text, etc.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:39:01

    I wonder if <!DOCTYPE html> was not added, causing the browser to not be able to parse it properly

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:39:01

    Where is your form?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:39:01

    No problem, Safari can play it.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:39:01

    Personally tested on Android, it can be bounced

    In this case, you need to provide the phone model and system version that cannot pop up the keyboard

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 13:39:01

    Did you use apples

    reply
    0
  • Cancelreply