文件结构中加入新的文件夹css和新的文件css.style

webapp/css/css.style

html[dir="ltr"] .myAppDemoWT .myCustomButton.sapMBtn {
   margin-right: 0.125rem
}

html[dir="rtl"] .myAppDemoWT .myCustomButton.sapMBtn {
   margin-left: 0.125rem
}

.myAppDemoWT .myCustomText {
   display: inline-block;
   font-weight: bold;
}

Manifest.json
增加resource
Walkthroug-Step14 Custom CSS and Theme Colors

webapp/view/App.view.xml
有了上面两步就可以在view中使用相应的css class
Walkthroug-Step14 Custom CSS and Theme Colors

相关文章:

  • 2021-08-29
  • 2021-06-06
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-09-16
猜你喜欢
  • 2021-05-21
  • 2021-06-26
  • 2021-08-25
  • 2021-12-16
  • 2021-10-30
  • 2022-12-23
相关资源
相似解决方案