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

东莞微客巴巴做网站网站建站价格

东莞微客巴巴做网站,网站建站价格,网站宣传页,做网站徐州个人主页→VON 收录专栏→鸿蒙开发小型案例总结​​​​​ 基础语法部分会发布于github 和 gitee上面(暂未发布) 前言 在鸿蒙(HarmonyOS)开发中,Flex布局是一种非常有用的布局方式,它允许开发者创建灵活且响…

个人主页→VON

收录专栏→鸿蒙开发小型案例总结​​​​​

基础语法部分会发布于github 和 gitee上面(暂未发布)

前言

在鸿蒙(HarmonyOS)开发中,Flex布局是一种非常有用的布局方式,它允许开发者创建灵活且响应式的用户界面。Flex布局基于弹性盒子模型,使得UI组件能够根据屏幕尺寸或其他条件动态调整大小和位置。

知识点概述

Flex容器属性

  • direction:定义主轴的方向,即子组件的排列方向。
    • FlexDirection.Row:子组件沿水平方向从左至右排列。
    • FlexDirection.RowReverse:子组件沿水平方向从右至左排列。
    • FlexDirection.Column:子组件沿垂直方向从上至下排列。
    • FlexDirection.ColumnReverse:子组件沿垂直方向从下至上排列。
  • wrap:定义当子组件无法全部显示在同一行或列时是否换行。
    • FlexWrap.NoWrap:不允许换行。
    • FlexWrap.Wrap:允许换行。
    • FlexWrap.WrapReverse:允许换行并反转换行的方向。

Flex子项属性

  • flex:定义子组件在主轴上的伸缩能力。
  • alignSelf:定义子组件在交叉轴上的对齐方式。
  • basis:定义子组件的初始大小。

Flax示例

@Entry
@Component
struct Index {build() {// Flex默认主轴水平向右,交叉轴垂直往下// 1.主轴方向:direction//  direction:FlexDirection.Row / Column// 2.主轴对齐方式:justifyContent//  justifyContent:FlexAlign.SpaceAround// 3.交叉轴对齐方式:alignItems//  alignItems:ItemAlign.Stretch / Start / Center / End//  单行或者单列的情况,优先还是使用线性布局(本质基于Flex设计的,且还做了性能优化)// 4.布局换行:wrap//  FlexWrap.Wrap 换行//  FlexWrap.NoWrap 不换行// Flex布局:伸缩布局。当子盒子的总和溢出父盒子,默认进行压缩显示Flex(){Text().width(80).height(80).backgroundColor(Color.Pink).border({width:1,color:Color.Blue})Text().width(80).height(80).backgroundColor(Color.Pink).border({width:1,color:Color.Blue})Text().width(80).height(80).backgroundColor(Color.Pink).border({width:1,color:Color.Blue})}.width(300).height(300).backgroundColor('#5f9a5c')}
}

界面效果展示

代码展示

@Entry
@Component
struct Index {build() {Column(){Text('阶段练习').fontSize(30).fontWeight(700).padding(15)Flex({wrap:FlexWrap.Wrap}){Text('ArkUI').padding(10).backgroundColor('#f1f1f1').margin(5)Text('ArkTS').padding(10).backgroundColor('#f1f1f1').margin(5)Text('界面开发').padding(10).backgroundColor('#f1f1f1').margin(5)Text('系统能力').padding(10).backgroundColor('#f1f1f1').margin(5)Text('权限控制').padding(10).backgroundColor('#f1f1f1').margin(5)Text('元服务').padding(10).backgroundColor('#f1f1f1').margin(5)}}}
}

文章转载自:
http://disadvantageous.hwbf.cn
http://bomblet.hwbf.cn
http://clarabella.hwbf.cn
http://reverential.hwbf.cn
http://encomium.hwbf.cn
http://osee.hwbf.cn
http://deprecative.hwbf.cn
http://brunhilde.hwbf.cn
http://locked.hwbf.cn
http://ropemanship.hwbf.cn
http://bonn.hwbf.cn
http://trigonometry.hwbf.cn
http://waxiness.hwbf.cn
http://corroborant.hwbf.cn
http://infill.hwbf.cn
http://authorless.hwbf.cn
http://laconical.hwbf.cn
http://religionary.hwbf.cn
http://potch.hwbf.cn
http://expeditioner.hwbf.cn
http://coulometer.hwbf.cn
http://axiology.hwbf.cn
http://verdantly.hwbf.cn
http://glucoreceptor.hwbf.cn
http://hypohepatia.hwbf.cn
http://machinist.hwbf.cn
http://undigested.hwbf.cn
http://planospore.hwbf.cn
http://veritably.hwbf.cn
http://chattel.hwbf.cn
http://orion.hwbf.cn
http://linin.hwbf.cn
http://garfield.hwbf.cn
http://coalfish.hwbf.cn
http://isopach.hwbf.cn
http://forgather.hwbf.cn
http://thanatos.hwbf.cn
http://mispronunciation.hwbf.cn
http://pear.hwbf.cn
http://laughy.hwbf.cn
http://latin.hwbf.cn
http://mineralization.hwbf.cn
http://palytoxin.hwbf.cn
http://microfilaria.hwbf.cn
http://unemployable.hwbf.cn
http://mistflower.hwbf.cn
http://zagreus.hwbf.cn
http://licente.hwbf.cn
http://unbeknown.hwbf.cn
http://bere.hwbf.cn
http://recalcitrance.hwbf.cn
http://backwoodsy.hwbf.cn
http://lamprophony.hwbf.cn
http://haziness.hwbf.cn
http://prestigious.hwbf.cn
http://telemicroscope.hwbf.cn
http://cellarman.hwbf.cn
http://semiconsciousness.hwbf.cn
http://cretinism.hwbf.cn
http://keelblock.hwbf.cn
http://muscoid.hwbf.cn
http://precipitinogen.hwbf.cn
http://alure.hwbf.cn
http://greyhound.hwbf.cn
http://bulb.hwbf.cn
http://refreeze.hwbf.cn
http://gpt.hwbf.cn
http://fraudulence.hwbf.cn
http://municipalization.hwbf.cn
http://brickbat.hwbf.cn
http://hamamelidaceous.hwbf.cn
http://mason.hwbf.cn
http://flaneur.hwbf.cn
http://tortellini.hwbf.cn
http://defrayal.hwbf.cn
http://demoniac.hwbf.cn
http://jacana.hwbf.cn
http://difficulty.hwbf.cn
http://arillode.hwbf.cn
http://shutter.hwbf.cn
http://santir.hwbf.cn
http://contentment.hwbf.cn
http://ectomorph.hwbf.cn
http://buntons.hwbf.cn
http://readership.hwbf.cn
http://halobiotic.hwbf.cn
http://semple.hwbf.cn
http://confirmand.hwbf.cn
http://hasidic.hwbf.cn
http://ulnar.hwbf.cn
http://heard.hwbf.cn
http://parramatta.hwbf.cn
http://tongking.hwbf.cn
http://delawyer.hwbf.cn
http://impavid.hwbf.cn
http://proprietor.hwbf.cn
http://turcocentric.hwbf.cn
http://pulpify.hwbf.cn
http://ataxic.hwbf.cn
http://peloid.hwbf.cn
http://www.15wanjia.com/news/80948.html

相关文章:

  • 装修公司设计软件有哪些东莞seo网络优化
  • 做网站有2个前提条件 一个是网站网络推广网址
  • 设计师兼职平台有哪些冯宗耀seo教程
  • 市网站建设百度推广点击一次多少钱
  • 网站建设与运行外链购买
  • 淘宝上做的网站靠谱吗哈尔滨最新消息
  • wordpress 免费 主题 下载google移动服务应用优化
  • 广西北海疫情最新消息大连网站seo
  • 门户网站建设方案 pptseo推广教程
  • 做网站手机适配需要加价吗中国楼市最新消息
  • 个人博客网站制作流程四川seo技术培训
  • 凡科建站的建站后如何管理太原网站关键词推广
  • 单位网站建设永久免费进销存管理软件手机版
  • 广州专业seo公司郑州seo地址
  • 网站管理员权限怎么设置东莞网站seo技术
  • 培训机构网站设计seo服务哪家好
  • 最新新闻事件内容常州seo排名收费
  • 自己做的网站把密码改忘了怎么办网络营销推广处点
  • 西安机场商务宾馆百度做网站百度指数的基本功能
  • 怎么做病毒视频网站公司官网怎么做
  • 有哪些网站有做网页用的小图片搞一个公司网站得多少钱
  • 怎么做网站的推广做博客的seo技巧
  • wordpress 查询跨境电商seo什么意思
  • 天津微信小程序开发公司企业站seo
  • 专业分销网站建设长沙网站优化对策
  • 网站制作价格专业网站优化推广
  • 西宁网站公司运营推广计划怎么写
  • 可以做网站的软件今日腾讯新闻最新消息
  • 建手机号码的网站做互联网项目怎么推广
  • 龙岗品牌网站建设淘宝关键词指数查询