How to find out if ipad is in landscape/portrait mode in javascript/jquery?

前端 未结 4 1220
春和景丽
春和景丽 2021-01-01 02:04

I want to add an extra div if the ipad is in landscape mode. Is there some sort of if statement that could find this out?

Thanks

4条回答
  •  一整个雨季
    2021-01-01 02:07

    
     
      Rotation Test
      
      
      
     
     
       
    LANDSCAPE

提交回复
热议问题