screen.width/screen.height not updating after screen rotation

后端 未结 4 1570
野趣味
野趣味 2021-02-13 02:58

I\'m experiencing this problem on an iPhone device (iPhone 7, iOS 10, but also other iPhones too): in javascript, if I intercept the orientationchange event, inside the handler,

4条回答
  •  北海茫月
    2021-02-13 03:22

    jQuery mobile has onOrienntetionChange event that handle orientation changing event,and there is $(window).orientationchange(); function to change orientation manually.

提交回复
热议问题