min-width media query not working on ipad?

后端 未结 6 717
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 20:43

Why isnt the following media query being picked up on iPads in landscape mode?

@media all and (min-device-width: 1000px) {
    css here
}

Or

6条回答
  •  面向向阳花
    2021-02-05 21:29

    For the record, I'm not sure why

    @media (min-width: 1000px) {
    
     /* css here */
    
    }  
    

    didn't work for you. Possibly something changed with the iPad since this question was first posted?

    Here's a working example:
    live view: http://fiddle.jshell.net/panchroma/Bn4ah/show/
    edit view: http://fiddle.jshell.net/panchroma/Bn4ah/

    Also be sure to include

      
    

    in the head of your page.

提交回复
热议问题