h5兼容性问题解决ios底部横杠遮挡问题
解决:按钮样式里增加如下代码,如果尝试不起作用时,找父级上加/*兼容iosx + */box-sizing: content-box;padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/前提
·
解决:
按钮样式里增加如下代码,如果尝试不起作用时,找父级上加
/*兼容iosx + */
box-sizing: content-box;
padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
前提是在index.html里有,viewport-fit=cover
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
更多推荐
已为社区贡献2条内容
所有评论(0)