【发布时间】:2017-06-11 04:11:40
【问题描述】:
我有一个 Ionic 应用程序,我希望在导航栏中有一个工具栏,其中工具栏的背景颜色与导航栏的“顶部标题”部分不同。
我有以下标记...
<ion-header>
<ion-navbar>
<ion-title>Main header</ion-title>
</ion-navbar>
<ion-toolbar style='background-color:green'>
<ion-title >Subheader</ion-title>
</ion-toolbar>
</ion-header>
还有一个例子 plunk here
当然,我想在 sccs 中执行此操作(而不是内联样式),但只是想找到如何覆盖默认值。
我希望工具栏的颜色与下图不同...
我使用设置导航栏颜色
.toolbar-background{
background-color: color($colors, secondary-lite);
}
这似乎在导航栏中设置了任何内容。
有谁知道我如何设置这个“辅助”工具栏?
提前感谢您的任何建议
【问题讨论】:
标签: css ionic-framework ionic2 ionic3