Do i need to specify CSS for media=“handheld” and

2019-07-19 12:55发布

Do i need to specify CSS for media="handheld" and use of CSS media queries media="only screen and (max-device-width:xxxpx)" if I'm making a simple mobile site for iphone, android, blackberry only?

Or media="all" or media="screen" would be enough?

I'm only targeting Blackberry 4.6+, iphone and android.

2条回答
孤傲高冷的网名
2楼-- · 2019-07-19 13:38

iPhone and Android don’t load media="handheld" stylesheets.

查看更多
干净又极端
3楼-- · 2019-07-19 13:46

It depends on what kind of devices/browsers are you targeting at. For example s60 browsers behave differently than iPhone, Android, Opera mini and similar browsers. Here is a nice article for your learning pleasures. http://www.alistapart.com/articles/return-of-the-mobile-stylesheet

查看更多
登录 后发表回答