LoginSignup
0
1

More than 3 years have passed since last update.

レスポンシブにしたのに、なぜかなっていない。そんな時の確認。

Posted at

せっかくレスポンシブに対応しているようにコードを書いたのに、サーバーにあげるとレスポンシブになっていない。

結論 head要素を見ましょう

ヘッド要素の中(railsならapplication.html)の中身に

<meta name="viewport" content="width=device-width, initial-scale=1.0">

hamlなら

%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/

こちらを記入しましょう。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1