gpt4 book ai didi

javascript - 带有 iOS 透明状态栏的 JQM 固定 header

转载 作者:行者123 更新时间:2023-11-30 05:51:32 52 4
gpt4 key购买 nike

更改仅适用于 iOS 的 JQM 样式的最佳方法是:

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

为了修复这个 hidden header ?有相应的插件吗?

最佳答案

1st) 你检测你的客户使用的操作系统:

osInfo.ios = navigator.userAgent.match(/(iPhone|iPod|iPad)/); 
osInfo.android = navigator.userAgent.match(/Android/);
osInfo.blackberry = navigator.userAgent.match(/BlackBerry/);

2)你应用 CSS,这样它会固定 iO 的位置​​

if(osInfo.ios)
{
//something here
}

附言希望我没听错

关于javascript - 带有 iOS 透明状态栏的 JQM 固定 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14582170/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com