SP00F
V2EX  ›  问与答

前端适配 iOS13 的 iPhone 刘海屏小黑条怎么做? iOS12 没问题。。iOS13 就无效了

  •  
  •   SP00F · Oct 27, 2019 · 1260 views
    This topic created in 2409 days ago, the information mentioned may be changed or developed.

    适配 iOS12 的时候,我用 safe-area-inset-bottom 没有问题。但是经过测试发现在 iOS13 不起作用,与机型无关。iPhone X 版本为 iOS13 无效。iPhone XS MAX 版本为 iOS12 没有问题。

    padding-bottom constant(safe-area-inset-bottom)
    padding-bottom env(safe-area-inset-bottom)
    

    翻了一圈暂时没有找到有效的解决方案……

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1161 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    ♥ Do have faith in what you're doing.