改变离子含量的背景颜色

Changing ion-content's background color

如何在 ionic 2 中更改 ion-content 的背景颜色?

在你的 app.scss 添加:

.bg-style {
    background: red;
}

并将样式应用于组件 Html 文件中的内容:

<ion-content class="bg-style">

转到 theme/variebles.css 并添加

$background-ios-color: #0F0029;
$background-md-color: #0F0029;

ios 和 android 背景