0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

本番環境で背景画像が表示されない場合の対処法

Posted at

どうも、岩城です。

本番環境でデプロイできた!よっしゃ!

「....え??
 背景画像が表示されてない...
 どぉしてだよおおおお!!!!」

と、新世界の神から転落した人は少なく無いはず。

image-urlを試してみる

.titlebg{
background-image:url(images/bg.png);
}

これを

.titlebg{
background-image:image-url('images/bg.png');
}

urlをシングルクォーテーションで囲うことを忘れないで下さいね^^

これで表示されると思います^^

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?