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?

Laravel Background-image 背景画像のURL

Posted at

Let's imagine this is the folders structure:

Resources
Limages
Lyour_image.png
css
Lstyle.css

First of all, don't forget to do npm run build or npm run dev.

Write the relative path to the image from your css (no quotes needed). In this example:

body {
background-image: url(../images/your_image.png);
}

パスの関係図

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?