开发者

iphone css: media type not working! [closed]

This question is unlikely to help any future visitors; it is only releva开发者_如何学JAVAnt to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I am working on a site specific to the iphone community. Having read few articles on the net, regarding css for the iphone safari browser I learnt to use the following code:

<!--[if !IE]>-->
<link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iPhone.css">
<!--<![endif]-->

However when I use it on the html pages it's not working. Basically it's not even applying the css file to the content.

Example Links: Without the media type: http://www.indiatourismhelpline.com/ip/page-1.html With the media type: http://www.indiatourismhelpline.com/ip/page-2.html

Hope the viewing the source of the files would help you to understand the issue. There must be something I am doing wrong here, have been trying for hours but just can't get it to work.

Please help!


No it's okay..it was a caching issue. Solved it :-) Thanks for your comment... appreciate it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜