css - 响应式网页设计 : Media Queries not working for other screens

标签 css media-queries

@media only screen and (min-width : 1824px) {}

@media only screen and (min-width : 1224px) {}

我正在使用这些媒体查询并且它们工作正常但是当我以 1280 像素的分辨率看到我的网站时,它不起作用

最佳答案

像这样尝试:

@media screen and (min-width: 1024px) and and (max-width:1280px)
{
 .....
}

关于css - 响应式网页设计 : Media Queries not working for other screens,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24134984/

相关文章:

javascript - 如果用户调整页面大小,则更改页面的 JavaScript 代码

html - 图像 float 页脚也 float

javascript - 如果 label = 空,则显示一个 div 并隐藏另一个 div

html - 更改分辨率时缩放图像

CSS 媒体查询未评估为真

css - 完整日历默认 View

html - 为什么我应该(或不应该)用 HTML 5 和 CSS3 编写我的新网站?

javascript - 媒体查询不工作最大宽度 : 900px

css - 如何让一个DIV填满浏览器窗口剩余的垂直空间?

html - 媒体查询有问题,没有任何反应