我已经为chrome和mozilla编写了媒体查询css。它在chrome中工作正常。但在mozilla中工作不正常
@media screen and (min-height:650px)
{
#customerspeak .flexslider .slides .customerBackground img {
height: 100vh;
}
#customerspeak .flex-direction-nav a {
margin-top: 37%;
}
#customerspeak .flex-next {
left: 62.5% !important;
}
#customerspeak .flex-prev {
left: 34% !important;
}
@-moz-document url-prefix() {
#customerspeak .flexslider .slides .customerBackground img {
height: 100vh;
}
#customerspeak .flex-direction-nav a {
margin-top: 37%;
}
#customerspeak .flex-next {
left: 62.5% !important;
}
#customerspeak .flex-prev {
left: 34% !important;
}
}
}
答案 0 :(得分:5)
在@-moz-document url-prefix()
查询之前尝试先使用@media
。
@-moz-document url-prefix() {
@media screen and (min-height:650px) {
/* insert code here*/
}
}