Firefox 未获取 ipad 特定媒体查询
Firefox not picking up ipad specific media query
我在 OSX (v46.0.1) 上使用最新版本的 Firefox,并使用以下媒体查询实现了针对平板电脑的特定设计:
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px){}
Firefox 完全忽略它。它还使 bootstrap xs 大小的媒体查询完全错误,但我不希望任何人看到它(Firefox 移动版工作正常)。为了以防万一,我已经关闭了 Firefox 中的所有扩展,但它没有帮助。
有没有其他人遇到过这种情况?
改变min/max-device
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
到min/max-width
@media only screen and (min-width: 768px) and (max-width: 1024px)
原因
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).
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.
我在 OSX (v46.0.1) 上使用最新版本的 Firefox,并使用以下媒体查询实现了针对平板电脑的特定设计:
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px){}
Firefox 完全忽略它。它还使 bootstrap xs 大小的媒体查询完全错误,但我不希望任何人看到它(Firefox 移动版工作正常)。为了以防万一,我已经关闭了 Firefox 中的所有扩展,但它没有帮助。
有没有其他人遇到过这种情况?
改变min/max-device
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
到min/max-width
@media only screen and (min-width: 768px) and (max-width: 1024px)
原因
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).
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.