相关疑难解决方法(0)

如何在没有浏览器嗅探的情况下将样式表应用于iPhone(而不是IE)?

我想将样式表专门应用于iPhone,而无需在服务器上或通过JavaScript进行浏览器嗅探(通过用户代理字符串).

我特别不希望Internet Explorer应用样式表.Apple推荐的应用iPhone特定样式表的代码,即:

<link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)

似乎导致样式表由IE 7和6应用.

css iphone internet-explorer mobile-safari ios

4
推荐指数
1
解决办法
5915
查看次数

标签 统计

css ×1

internet-explorer ×1

ios ×1

iphone ×1

mobile-safari ×1