LoginSignup
0
2

More than 1 year has passed since last update.

javascript記入中に検証ツールでエラーが出た時の原因

Posted at

スクリーンショット 2021-11-28 15.11.26.png

この The value "" for key "width" is invalid, and has been ignored. の原因について。
スクリーンショット 2021-11-28 15.11.45.png
問題のHTMLファイルはこれ。。。

shift+1でもう一度HTML雛形を確認してみると

スクリーンショット 2021-11-28 15.12.06.png

widthの後の device-width が抜けている!!
いつ抜けたのかはわからない笑

抜けた場所にdevice-width,(カンマを忘れずに)を入れると

スクリーンショット 2021-11-28 15.13.18.png

エラーがなくなった。

0
2
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
2