适配iphoneX底部安全区

//外面包一层
//这个是按钮
.PlanBookbxModule .bottom-btn-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}
.PlanBookbxModule .main_btn, .PlanBookbxModule .main_btn2 {
    width: 100%;
    box-sizing: border-box;
    height: 2.34667rem;
    padding-bottom: env(safe-area-inset-bottom);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
//这里是下面安全区 为了不让iphoneX下面的横杠不遮挡按钮或者图片
.PlanBookbxModule .placeholder-btn {
    height: constant(safe-area-inset-bottom);
    height: env(safe-area-inset-bottom);
    background: #fff;
}
#root {
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    box-sizing: border-box; }

 

你可能感兴趣的:(适配iphoneX底部安全区)