Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android上修复键盘上的内容(manifest.json)_Android_Html_Css_Mobile - Fatal编程技术网

如何在android上修复键盘上的内容(manifest.json)

如何在android上修复键盘上的内容(manifest.json),android,html,css,mobile,Android,Html,Css,Mobile,我试图将我的网站设置为当人们将其添加到手机主页时作为应用程序打开,但当我有输入字段时,它无法按预期工作。当键盘显示时,它停留在内容上方,不会调整大小。只有通过手机主屏幕上的快捷方式使用时才会发生这种情况 这是我的manifest.json: { "author": "My Name", "background_color": "#ffffff", "description": "App", "display": "fullscreen", "icons": [ {

我试图将我的网站设置为当人们将其添加到手机主页时作为应用程序打开,但当我有输入字段时,它无法按预期工作。当键盘显示时,它停留在内容上方,不会调整大小。只有通过手机主屏幕上的快捷方式使用时才会发生这种情况

这是我的manifest.json:

{
  "author": "My Name",
  "background_color": "#ffffff",
  "description": "App",
  "display": "fullscreen",
  "icons": [
    {
      "src": "https://192.168.26.183:8080/img/web-app.png",
      "sizes": "192x192",
      "type": "image/png"
    }
  ],
  "manifest_version": 2,
  "name": "App",
  "orientation": "portrait",
  "short_name": "App",
  "start_url": "https://192.168.26.183:8080/",
  "theme_color": "#ffffff",
  "version": "0.1"
}
这是我的html:


文件
* {
保证金:0;
填充:0;
框大小:边框框;
}
身体,
html{
身高:100%;
}
睾丸{
高度:计算(100%-10px);
宽度:100%;
内容:'';
背景色:红色;
}

您需要用
位置:绝对值将所有内容包装在容器中


文件
* {
保证金:0;
填充:0;
框大小:边框框;
}
身体,
html{
身高:100%;
}
.包装纸{
位置:绝对位置;
宽度:100%;
身高:100%;
溢出:自动;
}
睾丸{
高度:计算(100%-20px);
宽度:100%;
内容:'';
背景色:红色;
}

网站多次出现此问题。通常有帮助。方法将调用它的元素滚动到浏览器窗口的可见区域

您可以将其绑定到输入的
onFocus
事件

 <input type="text" id="testee" onfocus="getElementById('testee').scrollIntoView()" />


这不是清单问题,需要一些代码来获取更多详细信息。我认为它可以工作,但事实并非如此,键盘仍在内容上方。哦,我明白了。你能把你部署版本的链接发给我吗?我可以查一下,因为你知道我不能从
http