CSS Media Query min-width not working correctly

前端 未结 3 572
别跟我提以往
别跟我提以往 2021-01-04 10:59

I have a HTML like:




        
3条回答
  •  青春惊慌失措
    2021-01-04 11:26

    I used this HTML:

    
    
    
    
        
        Code: NewYork
    
    
        
    
    
    

    With a simpler media query declaration like this one:

    @media (min-width: 1000px) and (max-width: 1200px) {
    
     input {
            background-color: green;
        } 
    
    }
    

    It's working great here: http://jsbin.com/ubehoy/1

    Debugging with Firefox Responsive Design View and dragging the resizer, it changes the input background color correctly when the width limits are reached.

    Tried with Chrome 26.0.1410.64 m/IE 10 and it's working great too.

提交回复
热议问题