简体   繁体   中英

Full page body background image

I have a webpage which has several collapsable divs, the thing is that when I open more than once, the height of the background image I have on my body gets broken, at the end of the page I get a black background and the background isn't covering the whole page.

How could I fix this?.

Regards

For my body on CSS I'm using this:

body {
    background-image: url(../img/fondo_pantalla_bandadelcarmen_mar.jpg) !important; 
    background-position:center center !important;
    background-repeat:no-repeat !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
}
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

For further reference see This

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