How to set a background image using Next.js?
P粉725827686
P粉725827686 2023-09-09 12:39:05
0
1
544

I tried setting the background image using Next.js but couldn't.

This won't work. Picture will not be displayed:

// globals.css

body {
  background: url("/images/grid.svg") repeat;
}

I want to repeat the background image throughout the page like this:

How to set it up? Thank you in advance!

P粉725827686
P粉725827686

reply all(1)
P粉752826008

Try this.

background-image: url('/images/grid.svg');
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template