media queries for iBooks

吃可爱长大的小学妹 提交于 2019-12-24 10:45:34

问题


I'm wonder is there media query for iBooks. I know there is for kindle but I cant find any for iBooks. Is media query for web (from this website will work on iBooks?

thanks for any help.


回答1:


yes, you can use web browser-style media queries for iBooks, although right now iBooks doesn't seem to support orientation : landscape or orientation : portrait.

it's important that you include them as links in your HTML's head rather than directly in the stylesheet:

<link type="text/css" rel="stylesheet" media="only screen and (min-device-width: 768px) and (max-device-width: 1024px)" href="../Styles/iPad-styles.css" />

including them in the stylesheet can cause some readers to fail loading the entire stylesheet.



来源:https://stackoverflow.com/questions/19488854/media-queries-for-ibooks

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