媒体查询无法在Mozilla中运行

时间:2017-02-14 05:04:44

标签: html css media-queries

我已经为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;   
 }   
}
}

1 个答案:

答案 0 :(得分:5)

@-moz-document url-prefix()查询之前尝试先使用@media

@-moz-document url-prefix() {
    @media screen and (min-height:650px) {
       /* insert code here*/
    }
}