css - Firefox 没有获取特定于 iPad 的媒体查询

标签 css twitter-bootstrap firefox media-queries

我在 OSX (v46.0.1) 上使用最新版本的 Firefox,并使用以下媒体查询实现了平板电脑的特定设计:

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px){}

Firefox 完全忽略它。它还使 bootstrap xs size 媒体查询完全错误,但我不希望任何人看到它(Firefox 移动版工作正常)。为了以防万一,我已经关闭了 Firefox 中的所有扩展,但它没有帮助。

有没有人遇到过这种情况?

最佳答案

更改最小/最大设备

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)

最小/最大宽度

@media only screen and (min-width: 768px) and (max-width: 1024px)

原因

min/max-width

The width media feature describes the width of the rendering surface of the output device (such as the width of the document window, or the width of the page box on a printer).

min/max-device-width

Determines whether the output device is a grid device or a bitmap device. If the device is grid-based (such as a TTY terminal or a phone display with only one font), the value is 1. Otherwise it is zero.

关于css - Firefox 没有获取特定于 iPad 的媒体查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37391621/

相关文章:

java - 当我尝试从其他计算机访问小型 Web 应用程序时,CSS 不起作用

css - 创建堆叠像素网格来表示计数

html - 有什么方法可以更改 CSS 属性的 "anchor point"吗? (不是元素本身)

css - Twitter BootStrap Scrollspy Bug 仍然存在......?

javascript - Firefox 中的 event.offsetX

jQuery Sortable 元素并不总是留在父元素中

javascript - 如何将 font Awesome 图标插入到这样的输入按钮中?

jquery - selectpicker - 仅在选择中有更多选项时出错

google-maps - Google map 中的自定义标记未在 Firefox 中显示

javascript - dojo.require() 阻止 Firefox 呈现页面