2013年4月12日金曜日

iOS端末の縦横判別

JavaScriptでiOSの縦横判別をする。
if (Math.abs(window.orientation) === 90) {
 // 横
} else {
 // 縦
}

0 件のコメント:

コメントを投稿