Flex实现环绕布局
2016-05-08 12:09
1101 查看
html,body{ width: 100%; height: 100%; } html,body,ul,li,a{ padding: 0; margin: 0; list-style-type: none; text-decoration: none; } .sup{ height: 100%; width: 100%; display: flex; flex-wrap:wrap;//超行换行方式 } .sub1{ height: 300px; width: 80%; flex: none; background-color: #FF8000; } .sub2{ height: 600px; width: 20%; margin-top: -21.1%;//自己调节吧 flex: none; background-color: #FFFF80; } .sub3{ height: 600px; width:20%; flex: none; background-color: #FF8080; } .sub4{ height: 300px; width: 80%; flex: none; background-color: #80FF80; }
<div class="sup"> <div class="sub1"></div> <div class="sub2"></div> <div class="sub3"></div> <div class="sub4"></div> </div>
相关文章推荐
- CodeForces 592C The Big Race
- Google Java 风格 阅读随笔
- slab_--2 创建 销毁 cache
- linux下php pcntl_fork模拟多线程
- ruby Errors & Exceptions
- 104. Maximum Depth of Binary Tree
- ruby Errors & Exceptions
- zabbix监控Nginx
- 人月神话阅读笔记03
- 利用python yielding创建协程将异步编程同步化
- 学习篇---自定义SlidingMenu
- Maven安装MyBatis Generator
- 微博
- 【图解HTTP笔记】第三章 HTTP传输的内容
- android 系统给应用的jar
- HDU 2056 Rectangles(计算相交面积)
- 【图解HTTP笔记】第二章 简单的HTTP协议
- Memcache安全配置
- 关于Python编码问题的一些看法
- Bootstrap进阶五:Web开发中很实用的交互效果积累