1.思路:就是对其中图案的分解与拼装。方案一:分解成8个小块实现
//index.wxmlviewclass="section"viewclass="section__title"flex-direction:row/viewviewclass="flex-wrp"style="flex-direction:row;"viewclass="flex-itembc_green1"1/viewviewclass="flex-itembc_red2"2/viewviewclass="flex-itembc_blue3"3/viewviewclass="flex-itembc_red"2/viewviewclass="flex-itembc_blue"3/view/viewviewclass="flex-wrp"style="flex-direction:row;"viewclass="flex-itembc_green"1/viewviewclass="flex-itembc_red3"/viewviewclass="flex-itembc_blue4"/view/view/view//index.wxss@import"../lib/weui.wxss";.page-section{margin-bottom:20rpx;}.flex-wrp{display:flex;}.bc_green1{background:green;width:50px;height:20px;}.bc_red2{background:red;width:25px;height:20px;}.bc_blue3{background:blue;width:25px;height:20px;}.bc_red{background:red;width:100px;height:20px;}.bc_blue{background:blue;width:100px;height:20px;}.bc_red3{background:red;width:100px;height:80px;}.bc_blue4{background:blue;width:100px;height:80px;}.bc_green{background:green;width:100px;height:80px;}2.方案二:只用六个方块拼接实现
//index.wxmlviewclass="section"viewclass="section__title"flex-direction:row/viewviewclass="flex-wrp"style="flex-direction:row;"viewclass="flex-wrp"style="flex-direction:column;"viewclass="flex-wrp"style="flex-direction:row;"viewclass="flex-itembc_green"1/viewviewclass="flex-itembc_red"2/viewviewclass="flex-itembc_blue"3/view/viewviewclass="flex-itembc_green1"1/view/viewviewclass="flex-itembc_red1"2/viewviewclass="flex-itembc_blue1"3/view/view/view//index.wxss@import"../lib/weui.wxss";.page-section{margin-bottom:20rpx;}.flex-wrp{display:flex;}.bc_green{background:green;width:40px;height:30px;}.bc_red{background:red;width:30px;height:30px;}.bc_blue{background:blue;width:30px;height:30px;}.bc_green1{background:green;width:100px;height:70px;}.bc_red1{background:red;width:100px;height:100px;}.bc_blue1{background:blue;width:100px;height:100px;}3.方案三利用浮动
//index.wxmlviewclass="section"viewclass="section__title"flex-direction:row/viewviewclass="flex-wrp"style="flex-direction:row;"viewclass="flex-itembc_green"1viewclass="flex-itembc_blue_float"3/viewviewclass="flex-itembc_red_float"2/view/viewviewclass="flex-itembc_red1"2/viewviewclass="flex-itembc_blue1"3/view/view/view//index.wxss@import"../lib/weui.wxss";.page-section{margin-bottom:20rpx;}.flex-wrp{display:flex;}.bc_green{background:green;width:100px;height:100px;}.bc_red_float{background:red;width:30px;height:30px;float:right;}.bc_blue_float{background:blue;width:30px;height:30px;float:right;}.bc_red1{background:red;width:100px;height:100px;}.bc_blue1{background:blue;width:100px;height:100px;}4.最终效果
微信小程序案例需求文档-微信小程序_1 view组件的运用-微信小程序案例
浏览量:1794
时间:
来源:德林恩宝
版权声明
即速应用倡导尊重与保护知识产权。如发现本站文章存在版权问题,烦请提供版权疑问、身份证明、版权证明、联系方式等发邮件至197452366@qq.com ,我们将及时处理。本站文章仅作分享交流用途,作者观点不等同于即速应用观点。用户与作者的任何交易与本站无关,请知悉。

最新资讯
-
抖音再现本地生活服务,咫尺同城圈商业变现新通道
短视频成为本地生活探店网红营销变现引流的新阵地,每一位网红都渴望在短视频内“一夜爆红”。即速应用团队对多商家小程序进行升级,打造了咫尺同城圈:“同城探店营销助手”,不仅完善商家营销技巧,还助力探店网红玩转本地生活服务。 -
抖音再现本地生活服务,咫尺同城圈商业变现新通道
短视频成为本地生活探店网红营销变现引流的新阵地,每一位网红都渴望在短视频内“一夜爆红”。即速应用团队对多商家小程序进行升级,打造了咫尺同城圈:“同城探店营销助手”,不仅完善商家营销技巧,还助力探店网红玩转本地生活服务。 -
阿坝小程序代理
阿坝藏族羌族小程序代理公司有哪些?阿坝藏族羌族小程序代理平台哪个好?阿坝藏族羌族小程序代理商怎么收费,代理政策如何?下面就让即速应用产品经理jisuapp.cn来告诉你吧!