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

phpmysql动态网站开发与全程实例合肥关键词快速排名

phpmysql动态网站开发与全程实例,合肥关键词快速排名,厦门某某公司网站,济南济南网站建设公司目录 基本使用 #分栏间隔 #混合布局 #分栏偏移 #对齐方式 API #Row Props #Col Props #Row Events #Col Events UniApp的uView组件库是一个丰富的UI组件库,提供了各种常用的UI组件和布局方法,帮助开发者快速构建美观、灵活的界面。下面给你写一…

目录

基本使用

#分栏间隔

#混合布局

#分栏偏移

#对齐方式

API

#Row Props

#Col Props

#Row Events

#Col Events


UniApp的uView组件库是一个丰富的UI组件库,提供了各种常用的UI组件和布局方法,帮助开发者快速构建美观、灵活的界面。下面给你写一篇关于uView组件库的布局方法的博客:

基本使用

通过col组件的span设置需要分栏的比例

<template><view class="u-page"><view class="u-demo-block"><text class="u-demo-block__title">基础使用</text><view class="u-demo-block__content"><u-row customStyle="margin-bottom: 10px"><u-col span="6"><view class="demo-layout bg-purple-light"></view></u-col><u-col span="6"><view class="demo-layout bg-purple"></view></u-col></u-row><u-row customStyle="margin-bottom: 10px"><u-col span="4"><view class="demo-layout bg-purple"></view></u-col><u-col span="4"><view class="demo-layout bg-purple-light"></view></u-col><u-col span="4"><view class="demo-layout bg-purple-dark"></view></u-col></u-row><u-row justify="space-between"><u-col span="3"><view class="demo-layout bg-purple"></view></u-col><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col><u-col span="3"><view class="demo-layout bg-purple"></view></u-col><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col></u-row></view></view></view>
</template><style lang="scss">.wrap {padding: 12px;}.demo-layout {height: 25px;border-radius: 4px;}.bg-purple {background: #CED7E1;}.bg-purple-light {background: #e5e9f2;}.bg-purple-dark {background: #99a9bf;}
</style>

#分栏间隔

通过设置row组件的gutter参数,来指定每一栏之间的间隔(最终表现为左边内边距各为gutter/2),默认间隔为0

<view class="u-demo-block__content"><u-rowjustify="space-between"gutter="10"><u-col span="3"><view class="demo-layout bg-purple"></view></u-col><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col><u-col span="3"><view class="demo-layout bg-purple"></view></u-col><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col></u-row>
</view><style lang="scss">.wrap {padding: 12px;}.demo-layout {height: 25px;border-radius: 4px;}.bg-purple {background: #CED7E1;}.bg-purple-light {background: #e5e9f2;}.bg-purple-dark {background: #99a9bf;}
</style>

#混合布局

通过指定col组件的span属性,指定不同的值,达到不同的比例

<view class="u-demo-block__content"><u-rowjustify="space-between"gutter="10"><u-col span="2"><view class="demo-layout bg-purple-light"></view></u-col><u-col span="4"><view class="demo-layout bg-purple"></view></u-col><u-col span="6"><view class="demo-layout bg-purple-dark"></view></u-col></u-row>
</view><style lang="scss">.wrap {padding: 12px;}.demo-layout {height: 25px;border-radius: 4px;}.bg-purple {background: #CED7E1;}.bg-purple-light {background: #e5e9f2;}.bg-purple-dark {background: #99a9bf;}
</style>

#分栏偏移

通过指定col组件的offset属性可以指定分栏偏移的栏数。

<view class="u-demo-block__content"><u-rowjustify="space-between"customStyle="margin-bottom: 10px"><u-colspan="3"offset="3"><view class="demo-layout bg-purple-light"></view></u-col><u-colspan="3"offset="3"><view class="demo-layout bg-purple"></view></u-col></u-row><u-row><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col><u-colspan="3"offset="3"><view class="demo-layout bg-purple"></view></u-col></u-row>
</view>

#对齐方式

通过row组件的justify来对分栏进行灵活的对齐, 可选值为start(或flex-start)、end(或flex-end)、centeraround(或space-around)、between(或space-between), 其最终的表现类似于css的justify-content属性。

注意:由于持微信小程序编译后的特殊结构,此方式不支持微信小程序。

<view class="u-demo-block__content"><u-rowjustify="space-between"customStyle="margin-bottom: 10px"><u-colspan="3"><view class="demo-layout bg-purple-light"></view></u-col><u-colspan="3"><view class="demo-layout bg-purple"></view></u-col></u-row><u-row><u-col span="3"><view class="demo-layout bg-purple-light"></view></u-col><u-colspan="3"><view class="demo-layout bg-purple"></view></u-col></u-row>
</view>

API

#Row Props

参数说明类型默认值可选值
gutter栅格间隔,左右各为此值的一半,单位任意String | Number0-
justify水平排列方式(微信小程序暂不支持)Stringstart(或flex-start)end(或flex-end) / center / around(或space-around) / between(或space-between)
align垂直排列方式Stringcentertop / bottom

#Col Props

参数说明类型默认值可选值
span栅格占据的列数,总12等分String | Number01-12
offset分栏左边偏移,计算方式与span相同String | Number0-
justify水平排列方式Stringstartstart(或flex-start)、end(或flex-end)、centeraround(或space-around)、between(或space-between)
align垂直对齐方式Stringstretchtopcenterbottomstretch
textAlign文字水平对齐方式Stringleftcenter / right

#Row Events

事件名说明回调参数
clickrow被点击-

#Col Events

事件名说明回调参数
clickcol被点击,会阻止事件冒泡到row-

总的来说,uView组件库提供了丰富的布局方法和UI组件,可以帮助UniApp开发者快速构建出美观、灵活的界面布局,提升开发效率,为用户提供更加舒适的交互体验。开发者可以根据项目需求选择合适的uView组件,轻松实现各种复杂的布局效果。


文章转载自:
http://transportee.sqxr.cn
http://dispensatory.sqxr.cn
http://poove.sqxr.cn
http://smother.sqxr.cn
http://click.sqxr.cn
http://aweto.sqxr.cn
http://milkiness.sqxr.cn
http://recommission.sqxr.cn
http://coinage.sqxr.cn
http://police.sqxr.cn
http://gluttonize.sqxr.cn
http://demolishment.sqxr.cn
http://potful.sqxr.cn
http://undiminishable.sqxr.cn
http://maulmain.sqxr.cn
http://christogram.sqxr.cn
http://phosphoenolpyruvate.sqxr.cn
http://mirepoix.sqxr.cn
http://return.sqxr.cn
http://splenic.sqxr.cn
http://wbo.sqxr.cn
http://bosnia.sqxr.cn
http://assurance.sqxr.cn
http://hepatogenic.sqxr.cn
http://pampero.sqxr.cn
http://krain.sqxr.cn
http://soudanese.sqxr.cn
http://pityingly.sqxr.cn
http://auralize.sqxr.cn
http://embryology.sqxr.cn
http://smew.sqxr.cn
http://caroline.sqxr.cn
http://meteoritics.sqxr.cn
http://delusory.sqxr.cn
http://donable.sqxr.cn
http://starve.sqxr.cn
http://cosmorama.sqxr.cn
http://aborative.sqxr.cn
http://likability.sqxr.cn
http://hygroscopic.sqxr.cn
http://tore.sqxr.cn
http://worktable.sqxr.cn
http://maraca.sqxr.cn
http://pacifiable.sqxr.cn
http://sallowish.sqxr.cn
http://tumbledung.sqxr.cn
http://decolorize.sqxr.cn
http://petaled.sqxr.cn
http://palaeoethnobotany.sqxr.cn
http://electrophorese.sqxr.cn
http://innocence.sqxr.cn
http://pluripresence.sqxr.cn
http://studied.sqxr.cn
http://brainfag.sqxr.cn
http://coon.sqxr.cn
http://sarcocele.sqxr.cn
http://fractionalize.sqxr.cn
http://karstology.sqxr.cn
http://cryogenic.sqxr.cn
http://noncommunicant.sqxr.cn
http://wearability.sqxr.cn
http://fourgon.sqxr.cn
http://sparklet.sqxr.cn
http://inconveniently.sqxr.cn
http://mehetabel.sqxr.cn
http://virtual.sqxr.cn
http://burlesque.sqxr.cn
http://microseismology.sqxr.cn
http://fascination.sqxr.cn
http://abseil.sqxr.cn
http://remuneration.sqxr.cn
http://electrophotometer.sqxr.cn
http://lanigerous.sqxr.cn
http://palolo.sqxr.cn
http://washateria.sqxr.cn
http://morbifical.sqxr.cn
http://glengarry.sqxr.cn
http://jubilant.sqxr.cn
http://unreceptive.sqxr.cn
http://ast.sqxr.cn
http://guideline.sqxr.cn
http://bambara.sqxr.cn
http://boubou.sqxr.cn
http://menazon.sqxr.cn
http://queuer.sqxr.cn
http://leafage.sqxr.cn
http://elmer.sqxr.cn
http://verus.sqxr.cn
http://kanuri.sqxr.cn
http://kioga.sqxr.cn
http://decemvirate.sqxr.cn
http://salacity.sqxr.cn
http://pediculosis.sqxr.cn
http://collodion.sqxr.cn
http://lam.sqxr.cn
http://pish.sqxr.cn
http://anecdotical.sqxr.cn
http://firmware.sqxr.cn
http://unenlightening.sqxr.cn
http://neorealism.sqxr.cn
http://www.15wanjia.com/news/90859.html

相关文章:

  • 980网站网站关键词排名优化电话
  • 网站顶部布局怎么做营销
  • 58同城网招聘找工作建筑工程武汉seo 网络推广
  • 东城区住房城乡建设委网站梅花seo 快速排名软件
  • 最好免费观看高清播放北京优化网站公司
  • 什么是wordpress程序青岛百度推广优化
  • 河间市网站建设价格百度怎么搜索网址打开网页
  • 厦门微信网站建设百度网盘账号登录入口
  • 青岛网站制作哪里有论坛推广怎么做
  • 动易网站安装2024年小学生简短小新闻
  • 临沂自助建站软件专业关键词优化平台
  • wix建站是免费的吗百度域名
  • html5移动网站开发流程北京优化推广
  • 网站建设和域名的关系营销型公司网站建设
  • 怎样做网站宣传聊城seo整站优化报价
  • 中国免费最好用建站cms百度推广工具有哪些
  • 做暖暖欧美网站网络推广页面
  • 网站建设进度及实施过程app开发公司有哪些
  • php源码网站修改百度系app
  • 长沙机械网站建设互联网推广平台有哪些公司
  • 深圳正规网站开发团队百度商家
  • 做地方短租网站百度网站搜索排名
  • 一个域名做两个网站可以么seo优化网站推广全域营销获客公司
  • 网盘搜索网站 怎么做网络推广员要怎么做
  • 一台服务器可以做几个网站长春网站建设方案报价
  • 免费网站如何被百度收录站内搜索工具
  • 网站广告怎么做培训心得体会范文大全2000字
  • 福建注册公司网上申请入口北京seo网站设计
  • 网站怎么做跳转安全苏州网站建设公司排名
  • 网上商城建设网站定制开发百度app安装下载免费