CSS媒体查询目标只有iOS设备 [英] CSS media query target only iOS devices

查看:248
本文介绍了CSS媒体查询目标只有iOS设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个@media查询只定位iOS运行的设备?

is there a @media query to target only the iOS running devices ?

示例:

@media (min-device-width:320px) and (max-device-width:768px) {
#nav {
yada:yada;
}
}

这也会改变页面在android上的行为设备具有这些宽度透视?

this would also alter the behavior of the page on android devices with these width perspectives ? or am i mistaken with this last

推荐答案

简短答案No.
CSS不是特定于品牌的。

Short answer No. CSS is not specific to brands.

以下是仅使用媒体的iOS应用的文章。

Below are the articles to implement for iOS using media only.

https://css-tricks.com/snippets/css/media-queries-for-standard- devices /

http://stephen.io / mediaqueries /

Infact您可以使用PHP,Javascript来检测iOS浏览器,并根据您可以调用CSS文件。
例如

Infact you can use PHP, Javascript to detect the iOS browser and according to that you can call CSS file. For instance

http://www.kevinleary.net/php-detect-ios-mobile-users/

这篇关于CSS媒体查询目标只有iOS设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆