当前位置: 首页 > news >正文

中国建设银行湖南分行官网站免费咨询问题的网站

中国建设银行湖南分行官网站,免费咨询问题的网站,正保建筑工程网,开个公司一年需要多少费用Row组件 Row沿水平方向布局容器 接口: Row(value?:{space?: number | string }) 参数: 参数名 参数类型 必填 参数描述 space string | number 否 横向布局元素间距。 从API version 9开始,space为负数或者justifyContent设置为…

Row组件

Row沿水平方向布局容器

接口:

Row(value?:{space?: number | string })

参数:

参数名

参数类型

必填

参数描述

space

string | number

横向布局元素间距。

从API version 9开始,space为负数或者justifyContent设置为FlexAlign.SpaceBetween、FlexAlign.SpaceAround、FlexAlign.SpaceEvenly时不生效。

默认值:0,单位vp

说明:

可选值为大于等于0的数字,或者可以转换为数字的字符串。

属性:

名称

参数类型

描述

alignItems

VerticalAlign

设置子组件在垂直方向上的对齐格式。

默认值:VerticalAlign.Center

从API version 9开始,该接口支持在ArkTS卡片中使用。

justifyContent8+

FlexAlign

设置子组件在水平方向上的对齐格式。

默认值:FlexAlign.Start

从API version 9开始,该接口支持在ArkTS卡片中使用。

UI结构示例,1行里包含3行

@Entry
@Component
struct APage {build() {Row() {Row() {Text("左部").width('100%').fontColor(Color.White).textAlign(TextAlign.Center)}.backgroundColor(Color.Red).width(100).height(100)Row() {Text("中间").width('100%').fontColor(Color.White).textAlign(TextAlign.Center)}.backgroundColor(Color.Blue).width(100).height(100)Row() {Text("右部").width('100%').fontColor(Color.White).textAlign(TextAlign.Center)}.backgroundColor(Color.Pink).width(100).height(100)}.width('100%').height('100%')}
}

水平方向对齐

FlexAlign.Start

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.Start)}
}

FlexAlign.Center

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.Center)}
}

FlexAlign.End

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.End)}
}

FlexAlign.SpaceBetween

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.SpaceBetween)}
}

FlexAlign.SpaceAround

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.SpaceAround)}
}

FlexAlign.SpaceEvenly

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').justifyContent(FlexAlign.SpaceEvenly)}
}

垂直方向对齐

VerticalAlign.Top

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').alignItems(VerticalAlign.Top)}
}

VerticalAlign.Center

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').alignItems(VerticalAlign.Center)}
}

VerticalAlign.Bottom

@Entry
@Component
struct APage {build() {Row() {}.width('100%').height('100%').alignItems(VerticalAlign.Bottom)}
}

http://www.yayakq.cn/news/878335/

相关文章:

  • 推荐几个网站图片网站锤子简历模板免费
  • 福建省铁路建设办公室网站网站建设的硬件支持
  • 产品推广思路江苏企业seo推广
  • 做网站个人备案怎么宣传
  • 在线设计logo的网站网站描述如何写利于优化
  • 网站建设 鼠标怎么做网站推广世界杯
  • 宁波 网站建设养老网站建设的意义
  • 车网站建设策划新卓尼app下载注册
  • 中职网站建设与维护考试题网站的盈利点
  • 网站加上视频对seo影响一般电脑网站建设及运营多少钱
  • 网站做统计做木工网站
  • 购物网站开发需要什么软件美的企业微信网站
  • 网站建设项目结构分析报告自己做网站怎么赢利
  • ip反查域名网站提供手机网站制作公司
  • 做wish选品参考什么网站qq空间怎么添加wordpress
  • 网站轮播图片特效邯郸市中心医院
  • 重庆城乡建设部网站首页云购网站做的起来吗
  • led外贸网站制作店面设计原则
  • 电子商务网站建设的心得体会连云港做网站最好
  • 视频网站 界面设计制作二维码教程
  • dede网站安全设置做国外订单用哪个网站
  • 怎么做网站页面代码搜索建设工程施工承包合同
  • 中国网站模板下载怎样在平台上发布信息推广
  • 专业的医疗行业网站模板那些网站是php开发的
  • wordpress 子站点函数域名怎么起
  • 天津网站建设优化企业学校学不到网站建设
  • 网站建设怎么做账会计广东省住房和城乡建设局官网
  • 汕头h5建站接私活做网站设计
  • 网站建设需求分析报告撰写昆明优化网站公司
  • 医院网站建设需求分析青少年思想道德建设网站