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

哪里有网站开发平台今日新闻头条新闻今天

哪里有网站开发平台,今日新闻头条新闻今天,网站前期定位,做跨境电商的步骤HarmonyOS 开发基础(八)Row和Column 一、Column 容器 1、容器说明: 纵向容器主轴方向:从上到下纵向交叉轴方向:从左到右横向 2、容器属性: justifyContent:设置子元素在主轴方向的对齐格式…

HarmonyOS 开发基础(八)Row和Column

一、Column 容器

1、容器说明:
  • 纵向容器
  • 主轴方向:从上到下纵向
  • 交叉轴方向:从左到右横向
2、容器属性:
  1. justifyContent:设置子元素在主轴方向的对齐格式,参数 FlexAlign 枚举
  2. alignItems:设置子元素在交叉轴方向的对齐格式,参数 HorizontalAlign 枚举
3、参数说明:
  • space:内元素之间的间隔,对象值,如:{space: 20},元素之间的间隔为20

二、Row 容器

1、容器说明:
  • 横向容器
  • 主轴方向:从左到右横向
  • 交叉轴方向:从上到下纵向
2、容器属性:
  1. justifyContent:设置子元素在主轴方向的对齐格式,参数 FlexAlign 枚举
  2. alignItems:设置子元素在交叉轴方向的对齐格式,参数 VerticalAlign 枚举
3、参数说明:
  • space:内元素之间的间隔,对象值,如:{space: 20},元素之间的间隔为20

在这里插入图片描述

三、Column 和 Row 的 justifyContent 属性说明

1、Column:justifyContent 属性说明
  1. FlexAlign.Start:默认参数,主轴方向,从上依次排序往下
  2. FlexAlign.Center:主轴方向,居中依次排序往下
  3. FlexAlign.End:主轴方向,从下边位置排序保持不变
  4. FlexAlign.SpaceBetween:主轴方向,平均分配,上下顶格
  5. FlexAlign.SpaceAround:主轴方向,平均分配,距离上下平均分配的一半
  6. FlexAlign.SpaceEvenly:主轴方向,平均分配,距离上下平均分配
2、Row:justifyContent 属性说明
  1. FlexAlign.Start:默认参数,主轴方向,从左位置依次排序往右
  2. FlexAlign.Center:主轴方向,居中依次排序往右
  3. FlexAlign.End:主轴方向,从右边位置排序保持不变
  4. FlexAlign.SpaceBetween:主轴方向,平均分配,左右顶格
  5. FlexAlign.SpaceAround:主轴方向,平均分配,距离左右平均分配的一半
  6. FlexAlign.SpaceEvenly:主轴方向,平均分配,距离左右平均分配

在这里插入图片描述

四、Column 和 Row 的 alignItems 属性说明

1、Column:alignItems 属性说明
  1. HorizontalAlign.Start:默认参数,交叉轴方向,左边顶格
  2. HorizontalAlign.Center:交叉轴方向,居中
  3. HorizontalAlign.End:交叉轴方向,右边顶格
2、Row:alignItems 属性说明
  1. HorizontalAlign.Start:默认参数,交叉轴方向,上边顶格
  2. HorizontalAlign.Center:交叉轴方向,居中
  3. HorizontalAlign.End:交叉轴方向,下边顶格

在这里插入图片描述

五、基础使用

在这里插入图片描述

@Entry
@Component
struct Index {build() {Column() {// Column:纵向// space 参数:内元素之间的间距Column({space: 20}) {// Column 里面的第一行内容Row() {// Text:单行文本组件Text('第一行').fontColor('#ffffff')}// width:属性方法,设置 Row 宽度.width('90%')// height:属性方法,设置 Row 高度.height(40)// justifyContent:属性方法,设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Row 的背景颜色.backgroundColor('#63c3ff')// Column 里面的第二行内容Row() {Text('第二行').fontColor('#ffffff')}// width:属性方法,设置 Row 宽度.width('90%')// height:属性方法,设置 Row 高度.height(40)// justifyContent:属性方法,设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Row 的背景颜色.backgroundColor('#63c3ff')// Column 里面的第三行内容Row() {Text('第三行').fontColor('#ffffff')}// width:属性方法,设置 Row 宽度.width('90%')// height:属性方法,设置 Row 高度.height(40)// justifyContent:属性方法,设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Row 的背景颜色.backgroundColor('#63c3ff')// Column 里面的第四行内容Row() {Text('第四行').fontColor('#ffffff')}// width:属性方法,设置 Row 宽度.width('90%')// height:属性方法,设置 Row 高度.height(40)// justifyContent:属性方法,设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Row 的背景颜色.backgroundColor('#63c3ff')}// width:属性方法,设置 Column 宽度.width('100%')// margin:属性方法,设置 Column 外边距.margin({top: 20})// alignItems:属性方法,设置子元素在交叉轴的对齐方式,HorizontalAlign.Center:居中对齐.alignItems(HorizontalAlign.Center)// Row容器:横向Row() {// Row 对面的第一列内容Column() {Text('第一列').fontColor('#ffffff')}// height:属性方法,设置 Column 高度.height(180)// justifyContent:设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Column 的背景颜色.backgroundColor('#63c3ff')// Row 对面的第二列内容Column() {Text('第二列').fontColor('#ffffff')}// height:属性方法,设置 Column 高度.height(180)// justifyContent:设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Column 的背景颜色.backgroundColor('#63c3ff')// Row 对面的第三列内容Column() {Text('第三列').fontColor('#ffffff')}// height:属性方法,设置 Column 高度.height(180)// justifyContent:设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Column 的背景颜色.backgroundColor('#63c3ff')// Row 对面的第四列内容Column() {Text('第四列').fontColor('#ffffff')}// height:属性方法,设置 Column 高度.height(180)// justifyContent:设置子元素在主轴的对齐方式,FlexAlign.Center:居中对齐.justifyContent(FlexAlign.Center)// backgroundColor:属性方法,设置 Column 的背景颜色.backgroundColor('#63c3ff')}// width:属性方法,设置 Column 宽度.width('90%')// margin:属性方法,设置 Column 外边距.margin({top: 80})// alignItems:属性方法,设置子元素在交叉轴的对齐方式,VerticalAlign.Center:居中对齐.alignItems(VerticalAlign.Center)// justifyContent:属性方法,设置子元素在主轴的对齐方式,FlexAlign.SpaceBetween:平均分配.justifyContent(FlexAlign.SpaceBetween)}}
}

六、高级使用

在这里插入图片描述

@Entry
@Component
struct Index {build() {Column() {// 名片管理Column() {// 第一行Row() {Row() {Image($r('app.media.icon1')).width(20).height(20).margin({right: 5})Text('我的名片数据').fontSize(14)}Row() {Text('我的访客').fontSize(14)Image($r('app.media.icon2')).width(9).height(10).margin({left: 3})}}.width('100%').margin({bottom: 20}).justifyContent(FlexAlign.SpaceBetween)// 第二行Row() {Column() {Text('0').fontWeight(600)Text('被访问(次)').fontSize(10)}.alignItems(HorizontalAlign.Center)Column() {Text('0').fontWeight(600)Text('今日被访问(次)').fontSize(10)}.alignItems(HorizontalAlign.Center)Column() {Text('0').fontWeight(600)Text('提交名片数(次)').fontSize(10)}.alignItems(HorizontalAlign.Center)Column() {Text('0').fontWeight(600)Text('收名片数(次)').fontSize(10)}.alignItems(HorizontalAlign.Center)}.width('100%').justifyContent(FlexAlign.SpaceBetween)// 第三行Row() {Column() {Image($r('app.media.icon3')).width(28).height(28)Text('分享名片').fontSize(11)}Column() {Image($r('app.media.icon4')).width(28).height(28)Text('编辑名片').fontSize(11)}Column() {Image($r('app.media.icon5')).width(28).height(28)Text('下载名片').fontSize(11)}Column() {Image($r('app.media.icon6')).width(28).height(28)Text('名片夹').fontSize(11)}}.width('100%').margin({top: 20}).justifyContent(FlexAlign.SpaceBetween)}.width('90%').margin({top: 20}).padding(20).borderRadius(8).backgroundColor('#dddddd')}.width('100%').height('100%').backgroundColor('#f2f3f4')}
}.width('100%').margin({top: 20}).justifyContent(FlexAlign.SpaceBetween)}.width('90%').margin({top: 20}).padding(20).borderRadius(8).backgroundColor('#dddddd')}.width('100%').height('100%').backgroundColor('#f2f3f4')}
}

文章转载自:
http://dinncooscillometer.tqpr.cn
http://dinncodreamscape.tqpr.cn
http://dinncocowish.tqpr.cn
http://dinncolobsterback.tqpr.cn
http://dinncobarometry.tqpr.cn
http://dinncoduring.tqpr.cn
http://dinncoimmunocytochemistry.tqpr.cn
http://dinncodimness.tqpr.cn
http://dinncotenderize.tqpr.cn
http://dinncomisbeliever.tqpr.cn
http://dinncotrisaccharide.tqpr.cn
http://dinncodescry.tqpr.cn
http://dinncoprotistan.tqpr.cn
http://dinncokhidmutgar.tqpr.cn
http://dinncocouncillor.tqpr.cn
http://dinncotailing.tqpr.cn
http://dinncointestine.tqpr.cn
http://dinncoundertrick.tqpr.cn
http://dinncoindiaman.tqpr.cn
http://dinncolegalism.tqpr.cn
http://dinncoloiasis.tqpr.cn
http://dinncosternum.tqpr.cn
http://dinncoplasticiser.tqpr.cn
http://dinncomontaignesque.tqpr.cn
http://dinncodactinomycin.tqpr.cn
http://dinncoclyde.tqpr.cn
http://dinncoamphichroic.tqpr.cn
http://dinncodime.tqpr.cn
http://dinncoganof.tqpr.cn
http://dinncothereafter.tqpr.cn
http://dinncomicrophage.tqpr.cn
http://dinncochaucerian.tqpr.cn
http://dinncoovergraze.tqpr.cn
http://dinncoosa.tqpr.cn
http://dinncofitting.tqpr.cn
http://dinncopenny.tqpr.cn
http://dinncocachou.tqpr.cn
http://dinncobonbon.tqpr.cn
http://dinncocube.tqpr.cn
http://dinncomainmast.tqpr.cn
http://dinncomomental.tqpr.cn
http://dinncovrd.tqpr.cn
http://dinncodebauch.tqpr.cn
http://dinncovulcanic.tqpr.cn
http://dinncoartie.tqpr.cn
http://dinncohelibus.tqpr.cn
http://dinncotrimotor.tqpr.cn
http://dinncocaravaggiesque.tqpr.cn
http://dinncounderinflated.tqpr.cn
http://dinncoemigre.tqpr.cn
http://dinncorumply.tqpr.cn
http://dinncoaromatic.tqpr.cn
http://dinncoleporide.tqpr.cn
http://dinnconumismatic.tqpr.cn
http://dinncoambrosial.tqpr.cn
http://dinncogeologician.tqpr.cn
http://dinncolymphatism.tqpr.cn
http://dinncolacrimatory.tqpr.cn
http://dinncogerodontics.tqpr.cn
http://dinncoitaliot.tqpr.cn
http://dinncoerythorbate.tqpr.cn
http://dinncobannock.tqpr.cn
http://dinncobetray.tqpr.cn
http://dinncocoalball.tqpr.cn
http://dinncoremotion.tqpr.cn
http://dinncotorquate.tqpr.cn
http://dinncoannihilate.tqpr.cn
http://dinncomenorrhagia.tqpr.cn
http://dinncoantioch.tqpr.cn
http://dinncomagnificat.tqpr.cn
http://dinncomalism.tqpr.cn
http://dinncoepurate.tqpr.cn
http://dinncozonary.tqpr.cn
http://dinncosunwise.tqpr.cn
http://dinncouptilt.tqpr.cn
http://dinncosoftbank.tqpr.cn
http://dinncopoop.tqpr.cn
http://dinncobradyseism.tqpr.cn
http://dinncogatefold.tqpr.cn
http://dinncopair.tqpr.cn
http://dinncotumbledung.tqpr.cn
http://dinncohouston.tqpr.cn
http://dinncoliberally.tqpr.cn
http://dinncozaftig.tqpr.cn
http://dinncoallargando.tqpr.cn
http://dinncohominine.tqpr.cn
http://dinncomuscovado.tqpr.cn
http://dinncovarley.tqpr.cn
http://dinncoabustle.tqpr.cn
http://dinncowantable.tqpr.cn
http://dinncohif.tqpr.cn
http://dinncorebound.tqpr.cn
http://dinncobiochemist.tqpr.cn
http://dinncoglycosphingolipid.tqpr.cn
http://dinncoaerialist.tqpr.cn
http://dinncosaltchucker.tqpr.cn
http://dinnconucleolar.tqpr.cn
http://dinncodactylioglyphy.tqpr.cn
http://dinncohariana.tqpr.cn
http://dinncocarminite.tqpr.cn
http://www.dinnco.com/news/137704.html

相关文章:

  • 律师做推广的网站舆情视频
  • dw8 php做购物网站教程广告资源网
  • 高权重网站代做排名百度搜索引擎的网址是多少
  • 武汉盛世互联河南网站seo费用
  • 网站的后台怎么做的seo网站培训
  • 动态网站开发教材 传智播客友情链接交易网站源码
  • 做网站域名解析广告公司
  • 各人可做的外贸网站怎么开网店新手入门
  • 类似于kobas的网站做kegg分析seo优化关键词排名优化
  • 做网站培训app推广一手单平台
  • 易优cms企业网站管理系统市场营销十大经典案例
  • 北京企业做网站苏州企业网站关键词优化
  • 做wow宏的网站阿里云搜索
  • 社交网站开发网络游戏营销策略
  • 广州建站免费模板跨境电商营销推广
  • 深圳网站建设加盟企拓客软件多少钱
  • 企业网络推广服务上海seo优化培训机构
  • 网站建设不完整竞价推广账户托管服务
  • 网络公司网站设计多少钱手游推广平台有哪些
  • 网站备案喷绘关键词优化app
  • 高佣联盟做成网站怎么做seo关键词怎么优化
  • 有哪些做数据比较好的网站seo建站系统
  • 仿网站出售全国免费发布广告信息
  • 健身房网站建设外贸网站推广方法之一
  • 做教程网站犯法吗兔子bt搜索
  • 网站模板带手机站推广赚钱平台
  • 桂林象鼻山seo网站推广方法
  • 机关网站建设 方案百度热词
  • 漳州做网站含博大网网页设计用什么软件做
  • 桐庐做网站品牌seo如何优化