エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Get the device width in javascript
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Get the device width in javascript
Is there a way to get the users device width, as opposed to viewport width, using javascript? CSS... Is there a way to get the users device width, as opposed to viewport width, using javascript? CSS media queries offer this, as I can say @media screen and (max-width:640px) { /* ... */ } and @media screen and (max-device-width:960px) { /* ... */ } This is useful if I'm targeting smartphones in landscape orientation. For example, on iOS a declaration of max-width:640px will target both landscape an

