您可以尝试以下步骤更改标头的背景颜色。
// for mobile .header-collapse-condense ion-toolbar{ --background : red } // for web ion-toolbar { --background: red; }