IphoneX底部适配的完成_CSS图文教程_CSS_页面制作
发表时间:2025-09-07 来源:本站整理相关软件相关文章人气:
isIPhoneXR) {
// 底部增加fix-iphonex-bottm 样式
$(".contact-box").addClass('fix-iphonex-bottom')
// 底部增加iphone-footer-bg样式 初始none,条件满足block
$(".iphone-footer-bg").addClass('iphonexshow')
}
2.增加fix-iphonex-bottom样式
.fix-iphonex-bottom {
bottom: 34px !important;
}
如果想更改IPhoneX底部34像素的背景颜色怎么办呢?
3.增加iphone-footer-bg样式
.iphone-footer-bg {
height: 34px;
background: #6D6D6D;
width: 100%;
position: absolute;
bottom: -33px;
display: none;
}
.iphonexshow {
display: block !important;
}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持本站。
目前高端手机市场,iPhone手机快要形成一家独大的形势。