1. <legend id='ir28T'><style id='ir28T'><dir id='ir28T'><q id='ir28T'></q></dir></style></legend>
      <tfoot id='ir28T'></tfoot>

        <bdo id='ir28T'></bdo><ul id='ir28T'></ul>
        <i id='ir28T'><tr id='ir28T'><dt id='ir28T'><q id='ir28T'><span id='ir28T'><b id='ir28T'><form id='ir28T'><ins id='ir28T'></ins><ul id='ir28T'></ul><sub id='ir28T'></sub></form><legend id='ir28T'></legend><bdo id='ir28T'><pre id='ir28T'><center id='ir28T'></center></pre></bdo></b><th id='ir28T'></th></span></q></dt></tr></i><div id='ir28T'><tfoot id='ir28T'></tfoot><dl id='ir28T'><fieldset id='ir28T'></fieldset></dl></div>
      1. <small id='ir28T'></small><noframes id='ir28T'>

      2. 如何在固定模态错误中修复 iOS 11 输入元素

        How to fix the iOS 11 input element in fixed modals bug(如何在固定模态错误中修复 iOS 11 输入元素)
        <tfoot id='S4Nj8'></tfoot>
          <tbody id='S4Nj8'></tbody>

            1. <i id='S4Nj8'><tr id='S4Nj8'><dt id='S4Nj8'><q id='S4Nj8'><span id='S4Nj8'><b id='S4Nj8'><form id='S4Nj8'><ins id='S4Nj8'></ins><ul id='S4Nj8'></ul><sub id='S4Nj8'></sub></form><legend id='S4Nj8'></legend><bdo id='S4Nj8'><pre id='S4Nj8'><center id='S4Nj8'></center></pre></bdo></b><th id='S4Nj8'></th></span></q></dt></tr></i><div id='S4Nj8'><tfoot id='S4Nj8'></tfoot><dl id='S4Nj8'><fieldset id='S4Nj8'></fieldset></dl></div>
              • <bdo id='S4Nj8'></bdo><ul id='S4Nj8'></ul>

                  <legend id='S4Nj8'><style id='S4Nj8'><dir id='S4Nj8'><q id='S4Nj8'></q></dir></style></legend>

                • <small id='S4Nj8'></small><noframes id='S4Nj8'>

                  本文介绍了如何在固定模态错误中修复 iOS 11 输入元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  新发布的 iOS 11 中 HTML 输入中的一个错误正在给在固定容器中具有输入元素的网站带来问题.这正是正在发生的事情以及一些可能的解决方法.

                  A bug in HTML inputs in the newly released iOS 11 is creating problems for websites that have input elements in fixed containers. Here is exactly what is happening and some possible workarounds.

                  如果您有一个固定容器,并且它离屏幕底部足够近,迫使浏览器滚动为键盘腾出空间,则光标将放在文本输入之外.这对我们来说是一个关键问题,因为我们的核心功能之一依赖于用户通过固定模式对话框进行的输入.

                  If you have an in an fixed container and it is close enough to the bottom of the screen forcing the browser to scroll to make room for the keyboard, the cursor is put outside of the text input. This was a critical problem for us since one of our core functionalities relies on the user input through a fixed modal dialog.

                  这对我们来说是一个关键问题,因为我们的核心功能之一依赖于用户通过固定模式对话框进行的输入.

                  This was a critical problem for us since one of our core functionalities relies on the user input through a fixed modal dialog.

                  推荐答案

                  目前没有完美的解决方案.两个临时选项:

                  For now there is no perfect fix for it. Two temporary options:

                  1. 将对话框/模态更改为 position: absolute(不推荐)
                  2. 尝试在模式/对话框打开时移除背景滚动,并在对话框关闭时恢复它.

                  选项 2 的详细信息:例如,您可以在对话框打开时将根 div(或具有滚动条的任何内容)设置为 overflowY='hidden',然后将其改回 overflowY='' 对话框关闭时.(缺点:打开对话框/模式时浏览器会滚动到顶部)

                  Detail for option 2: For example, you can set your root div (or whatever that has a scrollbar) as overflowY='hidden' when dialog opens, and change it back overflowY='' when dialog closes. (Drawback: browser will be scrolled to top when you open dialog/modal)

                  注意:

                  1. 请记住在触发修复时检测操作系统/浏览器,否则您可能会在 IE 中遇到问题.
                  2. 关注此线程,获取有关此问题的最新更新.李>
                  1. Do remember to detect OS/browser when trigger fixes, otherwise you will probably encounter problem in IE.
                  2. Follow this thread to get the newest update about this issue.

                  这篇关于如何在固定模态错误中修复 iOS 11 输入元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  I want to do animation of an object along a particular path(我想沿特定路径对对象进行动画处理)
                  How to show a running progress bar while page is loading(如何在页面加载时显示正在运行的进度条)
                  HTML5 Canvas toDataURL returns blank(HTML5 Canvas toDataURL 返回空白)
                  Canvas has white space at the bottom and scrolls too far(画布底部有空白区域并且滚动太远)
                  HTML5 Canvas Resize (Downscale) Image High Quality?(HTML5 Canvas 调整大小(缩小)图像质量?)
                  Bootstrap 3 / showing modal doesn#39;t work with the javascript way(Bootstrap 3/显示模式不适用于javascript方式)

                  <small id='0mFM0'></small><noframes id='0mFM0'>

                    1. <i id='0mFM0'><tr id='0mFM0'><dt id='0mFM0'><q id='0mFM0'><span id='0mFM0'><b id='0mFM0'><form id='0mFM0'><ins id='0mFM0'></ins><ul id='0mFM0'></ul><sub id='0mFM0'></sub></form><legend id='0mFM0'></legend><bdo id='0mFM0'><pre id='0mFM0'><center id='0mFM0'></center></pre></bdo></b><th id='0mFM0'></th></span></q></dt></tr></i><div id='0mFM0'><tfoot id='0mFM0'></tfoot><dl id='0mFM0'><fieldset id='0mFM0'></fieldset></dl></div>

                          <tbody id='0mFM0'></tbody>
                        <legend id='0mFM0'><style id='0mFM0'><dir id='0mFM0'><q id='0mFM0'></q></dir></style></legend>

                            <bdo id='0mFM0'></bdo><ul id='0mFM0'></ul>
                          • <tfoot id='0mFM0'></tfoot>