开发者

Handheld stylesheet not used on my HTC

开发者 https://www.devze.com 2023-03-13 20:39 出处:网络
I\'m using <link href=\"stylesheets/mobile.css\" rel=\"stylesheet\" type=\"text/css\" media=\"handheld\" />

I'm using

<link href="stylesheets/mobile.css" rel="stylesheet" type="text/css" media="handheld" />

To include an alternate stylesheet for mobile devices. But it seems that the stylesheet is not being loaded at all on my HTC. Why is this? And more importantly, how do I ma开发者_JS百科ke sure my mobile stylesheet is loaded on all handhelds?

You can view the live website here: www.webvalid.nl/thomas

Thanks in advance!


I'd recommend using the CSS3 @media screen and (max-width: ###px) media queries as documented nicely at http://webdesignerwall.com/tutorials/css3-media-queries

All HTC (Android ones, anyway) and iPhone browsers support this, as far as I know, due to their good CSS3 support.

0

精彩评论

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