反应键盘风景

问题描述

我的反应有问题。 我有一个带有某些表单和输入字段的Web应用程序。 当我单击并在纵向模式下通过PC,智能手机或平板电脑的键盘使用输入字段时,一切正常,但是当我更改设备的方向并单击一个字段时,键盘就会出现,但它会覆盖所有视图。 我该如何解决这个问题?

“搜索”组件形式的示例:

 <div className="vv-search-form-layout">
  <div className="d-flex flex-row search-form">
    <input
      type='text'
      name="search"
      value={searchValue}
      className="form-control search-text"
      onChange={changeSearch}
      onKeyPress={onKeyPress}
      ref={this.searchInput}
     />
   </div>
  </div>

css:

.vv-search-form-layout {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
 
  @media (min-width: $md) {
    margin-bottom: 0;
  }
}

.search-form {
  text-align: center;
  justify-content: center;
  align-items: center;
  max-width: 35rem;
  width: 100%;
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...