iBooks的媒体查询 [英] media queries for iBooks

查看:104
本文介绍了iBooks的媒体查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否存在iBooks的媒体查询.我知道那是点燃的,但我找不到iBooks的.可以从此网站上对网站进行媒体查询吗( 可以在iBooks上使用?

感谢您的帮助.

解决方案

是的,您可以对iBook使用Web浏览器风格的媒体查询,尽管目前iBooks似乎不支持orientation : landscapeorientation : portrait. /p>

重要的是,将它们作为链接包含在HTML的头部中,而不是直接包含在样式表中:

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

在样式表中包含它们会导致某些读者无法加载整个样式表.

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.

解决方案

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.

这篇关于iBooks的媒体查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆