meta [设置全屏]
发布网友
发布时间:2023-05-01 11:56
我来回答
共1个回答
热心网友
时间:2023-10-11 21:16
一、meta [设置全屏]
<meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"
viewport-fit 的值有 默认值-auto/contain,全屏值-cover
constant() 以及 safe-area-inset-top safe-area-inset-right safe-area-inset-bottom safe-area-inset-left 是 iOS 11 webview 新增加的特性,专门用于应对刘海
body {
padding: constant(
safe-area-inset-top
)
constant( safe-area-inset-right )
constant( safe-area-inset-bottom)
constant( safe-area-inset-left)
}
//默认值
safe-area-inset-top=0,
safe-area-inset-right=44px ,
safe-area-inset-bottom=21px,
safe-area-inset-left=44px
原文链接:https://www.jianshu.com/p/69be9c78397d