我試圖做一個背景顏色,但我得到的是在頁腳上方的彩色矩形。背景問題
活生生的例子:http://solutionsmvo.nazwa.pl/test/
body, html {
font-family: Helvetica, Arial, sans-serif;
width: 100%; height: 100%;
background-color: #582c2c;
}
我在做什麼錯?
我試圖做一個背景顏色,但我得到的是在頁腳上方的彩色矩形。背景問題
活生生的例子:http://solutionsmvo.nazwa.pl/test/
body, html {
font-family: Helvetica, Arial, sans-serif;
width: 100%; height: 100%;
background-color: #582c2c;
}
我在做什麼錯?
試試這個:
body, html {
font-family: Helvetica, Arial, sans-serif;
width: 100%; height: 100%;
background-color: #582c2c !important;
}
你Bootstrap.min.css
包括您style.css
導致覆蓋CSS列入你的background-color: #582c2c;
順序應該是如下所示。
<link href="bootstrap.min.css">
<link href="style.css">
這是因爲對身體Bootstrap.min.css,其中對身體的背景色是#FFF background-color屬性,因此從刪除了這一行Bootstrap.min.css ...
請提供一個[JSFiddle](https://jsfiddle.net/)您的網頁,以便能夠編輯您的代碼。 –