Do i need to specify CSS for media=“handheld” and use of CSS media queries if I'm making a simple mobile site for iphone, android, blackberry only?

喜欢而已 提交于 2019-12-24 01:17:51

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/4549649/do-i-need-to-specify-css-for-media-handheld-and-use-of-css-media-queries-if-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!