css - 小屏幕的 Firefox 特定媒体查询
问题描述
当浏览器最小化时,我无法为 Firefox 创建媒体查询。当屏幕尺寸的最大宽度为 767 像素时,我想应用以下查询。
@-moz-document url-prefix() {
#inner-content {
padding-top: 0px !important;
}
}
我试过这个,但没有用。
@media only screen and (max-width:767px) {
#header-outer-container {
height: 50px !important;
}
#main-menu {
top: 50px;
}
#inner-content {
padding-top: 60px !important;
}
@-moz-document url-prefix() {
#inner-content {
padding-top: 0px !important;
}
}
}
任何帮助将不胜感激。谢谢
解决方案
以防它在将来对任何人有所帮助,这很有效:
@-moz-document url-prefix() {
@media only screen and (max-width:767px) {
#inner-content {
padding-top: 0px !important;
}
}
}
推荐阅读
- python - zinnia 和 cookiecutter-django 集成中的用户模型问题
- php - 如何在 URL 中隐藏 .php 扩展名
- php - Php - 回显 html 文本框,将文本框的值设置为变量:仅返回字符串的第一个空格
- r - r - 按现有组对连续数据进行分类
- apache-kafka - Kafka:我们的分区数量疯了吗?
- redis - 在sidekiq中检索队列位置
- spring - 使用spring security时如何去掉Spring Boot默认登录页面
- random-forest - RandomForestSRC 错误和 vimp
- google-chrome - google chrome headless puppeteer 获取页面的 DOM
- c# - Handlebars.Net 与本地文件路径