我無法讓我的身體背景顏色在Bootstrap 3網站上發生變化。這是從我的外部CSS文件中的一個片段:外部CSS:身體背景顏色不會改變
body {
font-family: 'Lato', arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
color: #2e2e2e;
}
我已經試過沒有快樂如下:
body {
background-color: #0aff0a;
font-family: 'Lato', arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
color: #2e2e2e;
}
- 和 -
body {
background-color: #0aff0a !important;
font-family: 'Lato', arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
color: #2e2e2e;
}
- 也 -
body {background: #0aff0a}
font-family: 'Lato', arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
color: #2e2e2e;
}
- 和 -
body {background-color: #0aff0a}
font-family: 'Lato', arial, sans-serif;
font-size: 16px;
line-height: 1.5;
font-weight: 300;
color: #2e2e2e;
}
上述所有代碼的測試對fiddlesalad完美的罰款。
我甚至曾嘗試加入後直接到我的html文件的頭:如果我刪除提及我的CSS文件,並留在我的HTML文件的頭部,背景顏色變化
<style>
body {
background-color: #0aff0a !important;
</style>
。所以,顯然我的CSS文件中必須有一些重寫正文背景顏色?我當然找不到它!
我的網頁上沒有任何內部CSS可以覆蓋它,我的樣式表被正確引用並且工作正常。我試圖清除我的緩存和我已經試過觀看在多個瀏覽器...
下面是該網站我工作的一個環節:Sinister Serpents
任何幫助或建議,將不勝感激。
謝謝。
您可能想了解[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve)。 – secelite
你是說複製/粘貼我所有的1600行CSS文件會更好嗎?我認爲我的例子非常精確... –