我使用的是twitter bootstrap,我想將頁面背景顏色設置爲#f8f8f9。但我認爲Twitter引導默認的白色背景正在阻礙。替換Twitter Bootstrap背景顏色
我讀,並試圖在這些方法,以及:
How to change twitter bootstrap background color
How to change the default background color white to something else in twitter boostrap
assign background color in twitter bootstrap 3
我在外部CSS文件和內嵌試圖
body{ background-color: #f8f8f9 !important};
如 好。但沒有人工作。
任何想法如何克服這個問題? 在此先感謝!
顯示的代碼應該可以工作,但它必須應用於所有引導程序後的css文件 – moped
請檢查您的外部線路路徑,它應該在引導後包含在內 –
向主體添加一個類並嘗試像'body.classname {background-color :#f8f8f9!important};' – vel