Button sapui5中圆形按钮的CSS样式

Button sapui5中圆形按钮的CSS样式,button,sapui5,Button,Sapui5,嗨,我想在sapui5中创建圆角按钮,由垂直边界分隔。由于我是sapui5的新手,我无法为简单的“sap.m.Button”找到任何特定的radius属性。请提出一些建议 您可以使用自定义css来实现这一点。为此,请使用XML中的class属性。如果您使用的是JSview,请使用addStyleClass方法 <Button class="roundClass" text="Hello UI5 World" press="doSomething" /> 欢迎来到

嗨,我想在sapui5中创建圆角按钮,由垂直边界分隔。由于我是sapui5的新手,我无法为简单的“sap.m.Button”找到任何特定的radius属性。请提出一些建议


您可以使用自定义css来实现这一点。为此,请使用XML中的
class
属性。如果您使用的是JSview,请使用
addStyleClass
方法

  <Button class="roundClass"
    text="Hello UI5 World"
    press="doSomething" />
欢迎来到UI5世界

.roundClass .sapMBtnInner{
  border-radius:30px;
}