<small id='3E3hA'></small><noframes id='3E3hA'>

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

        iPhone上的响应式网站-从横向旋转到纵向时不需要的空白

        Responsive website on iPhone - unwanted white space on rotate from landscape to portrait(iPhone上的响应式网站-从横向旋转到纵向时不需要的空白)
        <tfoot id='iiGLo'></tfoot>

                <bdo id='iiGLo'></bdo><ul id='iiGLo'></ul>
              • <small id='iiGLo'></small><noframes id='iiGLo'>

                <i id='iiGLo'><tr id='iiGLo'><dt id='iiGLo'><q id='iiGLo'><span id='iiGLo'><b id='iiGLo'><form id='iiGLo'><ins id='iiGLo'></ins><ul id='iiGLo'></ul><sub id='iiGLo'></sub></form><legend id='iiGLo'></legend><bdo id='iiGLo'><pre id='iiGLo'><center id='iiGLo'></center></pre></bdo></b><th id='iiGLo'></th></span></q></dt></tr></i><div id='iiGLo'><tfoot id='iiGLo'></tfoot><dl id='iiGLo'><fieldset id='iiGLo'></fieldset></dl></div>
                <legend id='iiGLo'><style id='iiGLo'><dir id='iiGLo'><q id='iiGLo'></q></dir></style></legend>

                  <tbody id='iiGLo'></tbody>
                  本文介绍了iPhone上的响应式网站-从横向旋转到纵向时不需要的空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在创建一个响应式网站,并且刚刚注意到在 iPhone 上查看我的内容页面时出现了一种奇怪的行为.在纵向模式下加载时,它可以正确缩放,并且在旋转到横向时也可以正确缩放.但是,当旋转回纵向时,页面似乎向左移动,或者无法正确缩放,并且在右侧下方有一条空白区域.这个空白似乎也出现在第一次纵向加载时,因为用户可以向左滑动页面

                  I am creating a responsive website, and have just noticed a strange behaviour in my content pages when viewed on the iPhone. It scales correctly when loaded in portrait mode, and also when rotated to landscape. However, when rotating back to portrait the page seems to shift left, or not zoom correctly, and there is a strip of white space down the right-hand side. This white space also seems to be present on first loading in portrait as the user can swipe the page left

                  这里没有使解释进一步复杂化,而是指向 发生此行为的示例页面.在 iPhone 上看看,然后看看 主页没有这个问题.

                  Rather than complicating the explanation any further, here's a link to a sample page where this behaviour is occurring. Have a look on an iPhone, then have a look at the home page which does not have this issue.

                  如果您需要进一步了解,只有我知道 :)

                  If you need to see anything further, just me know :)

                  推荐答案

                  解决了!问题来自一个特定的 div - 要找到它,这是一个删除不同元素直到问题消失的过程.

                  Fixed it! The issue was coming from one particular div - to find it, it was a process of deleting the different elements until the issue went away.

                  要修复它,我需要将 overflow-x: hidden 添加到该 div 并对其进行排序!希望这对其他有类似问题的人有用.

                  To fix it I needed to add overflow-x: hidden to that div and it sorts it out! Hope this is useful to others with a similar issue.

                  这篇关于iPhone上的响应式网站-从横向旋转到纵向时不需要的空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  iOS 6 rotations: supportedInterfaceOrientations doesn#180;t work?(iOS 6 旋转:supportedInterfaceOrientations 不起作用?)
                  UIImageView Gestures (Zoom, Rotate) Question(UIImageView 手势(缩放、旋转)问题)
                  How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                  How to capture current view screenshot and reuse in code? (iPhone SDK)(如何捕获当前视图屏幕截图并在代码中重用?(iPhone SDK))
                  iOS 6 shouldAutorotate: is NOT being called(iOS 6 shouldAutorotate: 没有被调用)
                  Strange behavior with android orientation sensor(android方向传感器的奇怪行为)
                    <bdo id='hsmoU'></bdo><ul id='hsmoU'></ul>

                      <tbody id='hsmoU'></tbody>

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

                        <small id='hsmoU'></small><noframes id='hsmoU'>

                        • <tfoot id='hsmoU'></tfoot>
                        • <legend id='hsmoU'><style id='hsmoU'><dir id='hsmoU'><q id='hsmoU'></q></dir></style></legend>