我的網站上有一個固定的背景,根據瀏覽器窗口的大小,它應該伸展。但是,由於某種原因,在到達頁腳之前底部有一小塊白色條紋。固定背景不伸縮到整個窗口
也許我在CSS中如何去解決這個問題?
這裏是我的html:
<div class="clear" id='content'>
<br>
<br>
<br>
<?php
$section = $_GET["section"];
if ($section == 'changePassword'){
include "changePassword.php";
}elseif ($section == "contactinfo"){
include "contactInfo.php";
}elseif ($section == "publicinfo"){
include "publicInfo.php";
}elseif ($section == "import"){
include "import.php";
}elseif ($section == "users"){
include "viewUsers.php";
}elseif ($section == "sales"){
include "sales.php";
}elseif ($section == "statements"){
include "./statements.php";
}elseif ($section == "books"){
include "viewBooks.php";
}elseif ($section == "specialists"){
include "booking.php";
}elseif ($section == "viewUser"){
include "viewUser.php";
}elseif ($section == "logAsUser"){
include "loginAsUser.php";
}else{
include "account.php";
}
//specialists
?>
<script type="text/javascript" src="main.js"></script>
</div>
而CSS:
.clear {
background: url('../assets/19.jpg') no-repeat fixed ;
background-size:100% 100%;
position: initial;
background-repeat: repeat-x;
background-repeat: repeat-y;
}
謝謝!
請添加js小提琴。 – steinmas