简体   繁体   中英

Background image in Html template

I bought a template and I want to set background image I put in code in each HTML file. But as soon as I publish the website on local host background image disappears.

I would like to how can I set background image on each page.

Try to se this css: (In case you want to add background Image through CSS)

.selectorName {
  background-image: url(image.file);
  background-repeat: no-repeat;
  background-size: cover;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM