iOS Safari专注于页面底部的元素问题

时间:2015-08-04 12:14:48

标签: html ios css safari

iOS Safari存在问题。 Chrome浏览器中没有此类问题。

当对焦于页面末尾的元素时,会出现键盘并且可以看到身体背景的一部分。有人遇到过这个问题吗?

HTML代码:



html, body{
  min-height: 100%;
  margin: 0;
  padding: 0;
}
body{
  background-color: #000;
  background-image: url('http://i.imgur.com/GrxcU65.png');
  background-repeat: repeat;
  background-position: 0 0;
  color: #fff;
}

<html>
  <head>
    <title>TODO supply a title</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=640, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no">
  </head>
  <body>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <div>TODO write content</div>
    <select id="test">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
    </select>
  </body>
</html>
&#13;
&#13;
&#13;

Safari截图: http://imgur.com/6c2xSKV,a9BSYNX

0 个答案:

没有答案