我是新來的網頁設計和遇到這個問題;我有兩個部分,每個部分都有其贏得的背景圖像。但是,第一個背景圖像不會在上一個背景圖像之後結束。相反,兩張圖片之間有空白,看起來很可怕。如何擺脫節之間的空白CSS/HTML
這是的jsfiddle:http://jsfiddle.net/M26Ge/
CSS:
#slide-1 .bcg {
background-image:url('http://upload.wikimedia.org/wikipedia/commons/1/15/Hopwas_Woods_Sun.jpg');
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
height: 800px;
width: 100%;
}
#slide-2 .bcg{
background-image:url('http://i953.photobucket.com/albums/ae11/Kronstadt/Shabby-Princess-Kristie_SF_StripedP.jpg');
background-position: center center;
background-repeat: repeat;
background-attachment: fixed;
background-size: cover;
height: 100%;
width: 100%;
}