How can I force iPhone’s Safari to use media=“handheld”?

丶灬走出姿态 提交于 2020-02-23 04:07:51

问题


Is there a way to force to iPhone’s Safari to use media="handheld" in place of media="screen"?


回答1:


You can't. Safari intentionally disregards media=handheld, as such stylesheets were typically tailored to pre-iPhone handhelds with much lower capabilities, and would therefore result in a poor low-quality version of the page.

However, you can direct Safari to use specific stylesheets using conditional css.



来源:https://stackoverflow.com/questions/2123091/how-can-i-force-iphone-s-safari-to-use-media-handheld

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