tec*_*ant 28 jquery user-agent if-statement ios
完全像听起来..
有一些神奇而简单的方式可以说:
if (user agent is iOS) {
if (browserRatio >=1.5) {
$container.css('min-height', '360px');
} else {
$container.css('min-height', '555px');
}
}
Run Code Online (Sandbox Code Playgroud)
tec*_*ant 66
找到了.
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
if (browserRatio >=1.5) {
$container.css('min-height', '360px');
} else {
$container.css('min-height', '555px');
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
41739 次 |
| 最近记录: |