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

    <small id='6eeFF'></small><noframes id='6eeFF'>

    <legend id='6eeFF'><style id='6eeFF'><dir id='6eeFF'><q id='6eeFF'></q></dir></style></legend>

        在 iPhone X 系列上处理 Chrome 浏览器中的安全区域

        Handle the safe area in Chrome browser on the iPhone X family(在 iPhone X 系列上处理 Chrome 浏览器中的安全区域)
        • <tfoot id='sftwR'></tfoot>
          • <bdo id='sftwR'></bdo><ul id='sftwR'></ul>

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

                    <tbody id='sftwR'></tbody>
                1. <legend id='sftwR'><style id='sftwR'><dir id='sftwR'><q id='sftwR'></q></dir></style></legend>
                  <i id='sftwR'><tr id='sftwR'><dt id='sftwR'><q id='sftwR'><span id='sftwR'><b id='sftwR'><form id='sftwR'><ins id='sftwR'></ins><ul id='sftwR'></ul><sub id='sftwR'></sub></form><legend id='sftwR'></legend><bdo id='sftwR'><pre id='sftwR'><center id='sftwR'></center></pre></bdo></b><th id='sftwR'></th></span></q></dt></tr></i><div id='sftwR'><tfoot id='sftwR'></tfoot><dl id='sftwR'><fieldset id='sftwR'></fieldset></dl></div>
                2. 本文介绍了在 iPhone X 系列上处理 Chrome 浏览器中的安全区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  对于我正在管理的网站,我正在使用新的 safe-area-inset-<position> 处理 iPhone X 系列屏幕安全区域,这在 Safari 浏览器上运行良好你可以在这里看到:

                  For the website that I am managing, I am handling the iPhone X family screen safe area using the new safe-area-inset-<position> and this is working fine on Safari browser as you can see here:

                  使用以下代码:

                  /* white container for the home bar that has an height only on devices that read the safe area to cover the transparency around that bar */
                  .ctc-container {
                      background: $white;
                      display: block;
                      position: fixed;
                      left: 0;
                      right: 0;
                      bottom: 0;
                      width: 100%;
                      min-height: env(safe-area-inset-bottom);
                      z-index: 100;
                  }
                  
                  /* chat and phone number container are positioned at the bottom of the safe area (for devices that read it) or at the bottom of the page */
                  .ctc-box {
                      position: absolute;
                      bottom: 0;
                      bottom: env(safe-area-inset-bottom);
                  }
                  

                  现在问题出在 Chrome 浏览器上,因为它显然还没有处理安全区域,所以聊天和电话号码框与 iPhone 主页栏重叠.

                  Now the problem is on Chrome browser because apparently it is not handling the safe area yet, so the chat and phone number box is overlapped by the iPhone home bar.

                  是否有任何 CSS 解决方案可以应用于 iPhone X 系列设备上的 Chrome 来处理安全区域?

                  Is there any CSS solution that can be applied for Chrome on iPhone X family devices to handle the safe area?

                  推荐答案

                  您是否已将 viewport-fit=cover 添加到您的 meta[name="viewport"] 中?

                  Have you added viewport-fit=cover to your meta[name="viewport"]?

                  这篇关于在 iPhone X 系列上处理 Chrome 浏览器中的安全区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  What values should I use for iOS boolean states?(我应该为 iOS 布尔状态使用什么值?)
                  How do I get NSJSONSerialization to output a boolean as true or false?(如何让 NSJSONSerialization 将布尔值输出为真或假?)
                  Is there any difference between bool, Boolean, and BOOL in Objective-C?(Objective-C 中的 bool、Boolean 和 BOOL 之间有什么区别吗?)
                  Set bool property of all objects in the array(设置数组中所有对象的布尔属性)
                  What is the correct way to proceed with this bool?(处理这个布尔值的正确方法是什么?)
                  iOS: Use a boolean in NSUserDefaults(iOS:在 NSUserDefaults 中使用布尔值)

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

                3. <legend id='dQSES'><style id='dQSES'><dir id='dQSES'><q id='dQSES'></q></dir></style></legend>

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

                      • <tfoot id='dQSES'></tfoot>

                          <tbody id='dQSES'></tbody>
                        • <bdo id='dQSES'></bdo><ul id='dQSES'></ul>