我上面的圖片背景圖像覆蓋
我必須將其設置爲覆蓋整個頁面的方式。我試了下面的代碼。
margin: 0px;
background: url(../images/common/header/Background_color.png);
background-repeat:repeat-x;
background-attachment:fixed;
background-position:top center;
height: 100%;
width: 100%;
border: 0;
display:inline-block;
background-color: transparent;
但是我得到的是這個。
它沒有覆蓋整個頁面。在底部,我得到了白色空間。任何人都可以幫助我嗎?提前致謝。
可否請你有點更清晰?其實我用過background-repeat。你想讓我改變什麼? – mukund 2013-05-10 07:02:37
我嘗試過......當我以這種方式嘗試時,而不是底部的空白區域,圖像被重複。但它不會被拉伸。當我使用background-repeat:重複,而不是空白時,顯示圖像頂部的深褐色。因此,我希望你能想象它的外觀。 – mukund 2013-05-10 07:16:01
repeat-x意味着背景只是在頂部 repeat-y意味着底部的背景 重複的平均值完整尺寸 – 2013-05-10 07:28:15