简体   繁体   English

整页机身背景图像

[英]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. 我有一个网页,有几个可折叠的div,事情是,当我不止一次打开时,我身上的背景图像的高度被打破,在页面的末尾,我得到一个黑色的背景,背景是覆盖整个页面。

How could I fix this?. 我怎么能解决这个问题?

Regards 问候

For my body on CSS I'm using this: 对于我在CSS上的身体我正在使用这个:

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 有关进一步参考,请参阅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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