2017-07-25 75 views
0

enter image description hereIonic2如何設置圖像背景顏色?

這是我的圖像背景顏色是透明的,我不想使用ionic2默認顏色,我想將默認顏色更改爲紅色,我應該怎麼做。

當我下面這個enter link description here 它會呈現出這樣 enter image description here

而且我想改變整個背景顏色不僅圖像背景顏色!

+0

https://forum.ionicframework.com/t/change-background-color-of-ion-content/52868/2 –

+0

@seesharper這一個我檢查ald ..但這隻能改變圖像背景顏色,不能完整默認背景顏色 –

回答

0

更改或添加默認顏色variables.scss

$colors: (primary: #ff0000, secondary: #32db64, danger: #f53d3d, light: #f4f4f4, dark: #222); 

對於全背景色嘗試這 -

在page.scss -

.masters .scroll-content { 
     background-color: color($colors, primary) !important; // or background-color: red !important; 
}