Tag: 互联网浏览器

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

我想将样式表专门应用于iPhone,而无需在服务器上或通过JavaScript进行浏览器嗅探(通过用户代理string)。 我特别不希望Internet Explorer应用样式表。 苹果公司build议的应用iPhone专用样式表的代码,即: <link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet"> 似乎导致样式表由IE 7和6应用。