1.边框的宽度
.borderWidth
2.边框颜色
.backgroundColor('#7266ba')
3.水平居中
.alignItems(HorizontalAlign.Center)
水平居中样式
Column(){
Image($rawfile('weixin.png'))
.height(40)
}
.height(60)
.width(60)
.border({
width:1,
color:Color.Green,
style:BorderStyle.Solid,
radius:50
})
.alignItems(HorizontalAlign.Center)//水平居中
4.垂直居中
.justifyContent(FlexAlign.Center)
垂直居中样式
Column(){
Image($rawfile('weixin.png'))
.height(40)
}
.height(60)
.width(60)
.border({
width:1,
color:Color.Green,
style:BorderStyle.Solid,
radius:50
})
.justifyContent(FlexAlign.Center)//垂直居中
5.多选框
checkbox