文件结构中加入新的文件夹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
webapp/view/App.view.xml
有了上面两步就可以在view中使用相应的css class