Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の携帯電話の画面の高さは800pxです。私がこれをするとき:
var windowSize = $(window).height(); alert(windowSize);
たったの508pxだと書いてあります。
jQuery Mobileを使用していますが、これが画面のサイズに影響を与えるかどうかはわかりません。
電話スクリーンの正しい高さを取得するのが最善でしたか?
あなたが探しているのは:
screen.height
http://www.w3schools.com/jsref/obj_screen.asp