ion-title

概要(CONTENTS)

Ionic4项目中我们可以使用Ionic4导航条组件ion-title对项目进行布局。ion-title中有ionic ion-title 用法(Usage) ,ionic ion-title 属性(Properties) ,ionic ion-title 中的CSS 自定义属性等

ion-title is a component that sets the title of the Toolbar.

ion-title 用法(Usage)

javascript
<ion-header>

  <ion-toolbar>
    <ion-title>Settingsion-title>
  ion-toolbar>

ion-header>

ion-title 属性(Properties)

color

Description

The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.

Attribute color
Type string | undefined

ion-title中的CSS 自定义属性

Name Description
--color Text color of the title