2013-08-23 77 views
1

*和标题付款方式之间有空格。删除SAPUI5中强制性*和标签之间的空格

我使用下面的代码提前

new sap.ui.commons.form.FormElement({ 
    label: "Payment Method", 
    fields: [ 
     new sap.ui.commons.ComboBox("PaymentMethod", { 
      items : [ 
       new sap.ui.core.ListItem("PaymentMethod1", { text: "Wire" }), 
       new sap.ui.core.ListItem("PaymentMethod2", { text: "ACH" }) 
      ], 
      required:true, 
     }) 
    ], 
    layoutData: new sap.ui.commons.layout.ResponsiveFlowLayoutData({ 
     linebreak: true, 
     margin: true 
    }) 
}) 

感谢。

回答

1

将css更改为

.sapUiGridLabel > .sapUiLbl.sapUiLblReq:before { 
    color: #006CA7; 

    content: "*"; 

    font-size: 20px; 

    font-weight: bold; 

    padding-right: 0px; 

    vertical-align: middle; 

}