uniapp input组件在iOS端被软键盘‘挤上去’的问题

145 阅读1分钟

问题复现

image.png

解决方法

只需要给input框添加两个属性就解决了

  • cursor-spacing
  • always-embed

官方文档:uniapp.dcloud.net.cn/component/i…