nbin2008
V2EX  ›  微信

微信小程序碰到个适配问题,有什么好的解决方法吗?

  •  
  •   nbin2008 · Mar 25, 2020 · 1585 views
    This topic created in 2237 days ago, the information mentioned may be changed or developed.

    描述: 1,设计稿 750*1334,标准 iphone6 尺寸 2,全背景图,有定位的元素,如果 logo 和 title 这些

    伪代码:

    <view class='t1'> <view class='t2'></view> <view class='t2'></view> </view>

    目前:

    方案 1: t1 高度固定 1334rpx,t2 按设计稿尺寸宽高定位,适配 iphone6 机型,背景图和定位的元素也没问题,但是在 iphonex 上,底部会空出一截

    方案 2: t1 高度 100vh,t2 按设计稿宽高定位,页面展示差异很大

    有没有好的解决方案呀

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