本文爲原創文章,轉載請標明出處
目錄
- 修改返回按鈕文字
- 修改返回按鈕顏色
1. 修改返回按鈕文字
參考官網 Ionic API—Config 文檔
可在 ./src/app/app.module.ts
中修改返回按鈕文字
@NgModule({
......
imports: [
IonicModule.forRoot(MyApp, {
backButtonText: ''
})
]
......
})
2. 修改返回按鈕顏色
參考官網 Overriding Ionic Sass Variables 文檔
可在 ./src/theme/variables.scss
中修改返回按鈕顏色
$toolbar-ios-button-color: #222;
如有不當之處,請予指正,謝謝~