iOS 11 Safari在光标外引导模态文本区域 [英] iOS 11 Safari bootstrap modal text area outside of cursor

查看:112
本文介绍了iOS 11 Safari在光标外引导模态文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用iOS 11 safari,输入文本框光标位于输入文本框之外。我们没有明白为什么它有这个问题。正如你所看到的我的焦点文本框是电子邮件文本输入,但我的光标在它之外。这只发生在iOS 11 Safari上



< img src =https://i.stack.imgur.com/34d6d.pngalt =问题>

解决方案

div>

通过在打开模式时在主体中添加 position:fixed 来解决问题。
希望这会帮助你。


With iOS 11 safari, input textbox cursor are outside of input textbox. We did not get why it is having this problem. As you can see my focused text box is email text input but my cursor is outside of it. This only happens with iOS 11 Safari

解决方案

I fixed the issue by adding position:fixed to the body when opening a modal. Hope this will help you.

这篇关于iOS 11 Safari在光标外引导模态文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆