【发布时间】:2017-02-07 00:37:05
【问题描述】:
我的网站中有许多媒体查询可以调整平板电脑/智能手机上各种元素的大小。我刚刚添加了另一个媒体查询来调整低分辨率笔记本电脑上相同元素的大小,发现 Firefox 和 Chrome 似乎忽略了我对背景大小的使用。
媒体查询正在运行,其中部分正在被拾取,但不是背景大小。它在 Safari 中运行良好。
有什么想法吗?
我的 CSS 是:
@media only screen and (min-height: 768px) and (max-height: 800px) {
#title-we-are {
background-size:95%;
background: url(../img/title_we_are.png) bottom center no-repeat;
height:254px;
}
}
【问题讨论】:
标签: css media-queries