目的:

代码:

<!--pages/index/index.wxml-->
<view class="container">
<view class="top">
<text class="top_left">1</text>
<view class="top_right">
<text class="top_right_high">2</text>
<text class="top_right_low">3</text>
</view>
</view>
<view class="buttom">
<view class="buttom_left">
<text class="buttom_left_high">4</text>
<text class="buttom_left_low">5</text>
</view>
<view class="buttom_right">
<text class="buttom_right_high">6</text>
<text class="buttom_right_low">7</text>
</view>
</view>
</view>
/* pages/index/index.wxss */
/* 全局 */
.container{
display: flex;
flex-direction: column;
}
/* 上半部 */
.top{
height: 50vh;
display: flex;
flex-direction: row;
}
.top_right{
display: flex;
flex-direction: column;
}
.top_left{
height: 600rpx;
width: 375rpx;
background-color: red;
}
.top_right_high{
height: 300rpx;
width: 375rpx;
background-color: gold;
}
.top_right_low{
height: 300rpx;
width: 375rpx;
background-color: blue;
}
/* 下半部 */
.buttom{
height: 50vh;
display: flex;
flex-direction: row;
}
.buttom_right{
display: flex;
flex-direction: column;
}
.buttom_left{
display: flex;
flex-direction: column;
}
.buttom_right_high{
height: 300rpx;
width: 375rpx;
background-color: lightcoral;
}
.buttom_right_low{
height: 300rpx;
width: 375rpx;
background-color: hotpink;
}
.buttom_left_high{
height: 300rpx;
width: 375rpx;
background-color: aqua;
}
.buttom_left_low{
height: 300rpx;
width: 375rpx;
background-color: green;
}

Flex:实例的更多相关文章

  1. flex实例(阮一峰)

    Flex 布局教程:实例篇   作者: 阮一峰 日期: 2015年7月14日 上一篇文章介绍了Flex布局的语法,今天介绍常见布局的Flex写法. 你会看到,不管是什么布局,Flex往往都可以几行命令 ...

  2. flex 实例 豆瓣手机端布局实现

    0.最终成品

  3. flex 实例Demo

    Flex 页面布局 很方便 快捷 <!DOCTYPE html> <html lang="en"> <head> <meta charse ...

  4. Flex Grid学习-链接

    这些是我个人在学习这两种布局的时候参考的资料,希望对大家有用-- 1.Flex 阮一峰(flex语法讲解):http://blog.csdn.net/naruto_luoluo/article/det ...

  5. 推荐一个学习Flex chart的好网站

    推荐一个学习Flex chart的好网站 2013-03-04 14:16:56|  分类: Flex |  标签: |字号大中小 订阅     推荐一个学习Flex chart的好网站 最近在做一个 ...

  6. flex 布局示例

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

  7. CSS flex 布局学习笔记

    写在前面 Flex 是 Flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性. 任何一个容器都可以指定为 Flex 布局. 采用 Flex 布局的元素 ...

  8. 我的第一个 RN 项目-趣闻

    代码地址如下:http://www.demodashi.com/demo/13486.html 项目预览 IOS: Android: 扫描体验: 或者点我 整体功能跟之前小程序和 Android 项目 ...

  9. 最近学习工作流 推荐一个activiti 的教程文档

    全文地址:http://www.mossle.com/docs/activiti/ Activiti 5.15 用户手册 Table of Contents 1. 简介 协议 下载 源码 必要的软件 ...

  10. Flex通信-Java服务端通信实例

    转自:http://blessht.iteye.com/blog/1132934Flex与Java通信的方式有很多种,比较常用的有以下方式: WebService:一种跨语言的在线服务,只要用特定语言 ...

随机推荐

  1. element 表格里的input点击回车聚焦下个input

    <template> <card> <el-table ref="singleTable" :data="tableData" h ...

  2. QT离线安装包

    各个版本下载链接http://mirrors.ustc.edu.cn/qtproject/archive/qt http://www.qtcn.org/bbs/i.php

  3. linux环境jacoco接入

    我们通常会将测试覆盖率分为两个部分,即“需求覆盖率”和“代码覆盖率”. 需求覆盖:指的是测试人员对需求的了解程度,根据需求的可测试性来拆分成各个子需求点,来编写相应的测试用例,最终建立一个需求和用例的 ...

  4. 计数器IP核

    Quartus II提供的LPM_couter IP核的使用 FPGA设计方式: 原理图,Verilog HDL设计方式,IP核输入方式 创建IP核 点击TOOLS—IP catalog-libray ...

  5. spring boot 实战笔记(一)

    spring 概述: Bean :每一个被 Spring 管理的 JAVA对象,都称之为 Bean.Spring提供一个IoC容器来初始化对象,负责创建Bean, 解决对象之间的依赖管理和对象的使用. ...

  6. 20191225_Python构造函数知识以及相关注意事项

    Python构造函数格式为__init__() 注:下划线为两个而不是一个 可以有无参构造 instance: class city: def printout(self,first,second): ...

  7. Jenkins Pipeline waitForQualityGate pending 超时

    请参考链接:http://www.iotxing.com/2019/06/12/258/jenkins-pipeline-waitforqualitygate%E8%B6%85%E6%97%B6/ 主 ...

  8. java基础(六)之继承初探

    什么是继承? 一个类得到了另一个类当中的成员变量和成员方法.java只支持单继承.一个子类只允许继承一个父类,一个父类可以被多个子类继承. 比如下面的一个例子, 先创建一个Person类 class ...

  9. 浅谈Power Signoff

    Power Analysis是芯片设计实现中极重要的一环,因为它直接关系到芯片的性能和可靠性.Power Analysis 需要Timing Analysis 产生包含频率.transition 等时 ...

  10. python 常用包之xml文件处理

    1,处理xml的包 from xml.etree import ElementTree as ET 2,如何写出xml文件 xml文件和html中的元素很像,有父级子集之说, root = ET.El ...