Galaxy Note II会在旋转过程中切换innerHeight和Screen.height。下面列出了 innerHeight/Width 和 Screen.Height/Width
Portrait innerHeight/Screen.Height 615/1280
innerWidth/Screen.Width 360/720
Landscape innerHeight/Screen.Height 335/720
innerWidth/Screen.Width 640/1280
根据这篇文章
http://tripleodeon.com/2011/12/first-understand-your-screen/
媒体查询 min/max-device-height/width 等于 screen.height/width 所以对于 Galaxy Note II,我的媒体查询在下面列出
/* Galaxy Note2 - Portrait */
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-device-height: 1200px) and (max-device-height: 1300px) and (orientation: portrait) {
Code here
}
/* Galaxy Note2 - landscape Due to the Screen Height and Width is changing during orientation changes */
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 1270px) and (max-device-width: 1300px) and (orientation: landscape) {
Code here
}