<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.main {
position: absolute;
left: ;
top: ;
background-color: aquamarine;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: %;
height: %;
} .top {
height: 60px;
width:%;
background-color: red;
text-align:center;
} .container{
width: %;
background-color: gray;
flex: ; /**占据所有剩余空间**/
text-align:center;
display: flex;
} .left, .right{
width:100px;
background-color:green;
//flex:1;/**想要3个div均等划分就开放此设置**/
} .center{
flex:;
} .bottom {
width: %;
height: 60px;
background-color: red;
text-align:center;
}
</style>
</head>
<body>
<div class="main">
<div class="top">
top
</div> <div class="container">
<div class="left">left</div>
<div class="center">center</div>
<div class="right">right</div>
</div> <div class="bottom">footer</div>
</div>
</body>
</html>

最新文章

  1. 一则JVM memory leak解决的过程
  2. CentOS 7 为firewalld添加开放端口及相关资料
  3. 设置linux账号的有效时间
  4. 【原创】基于Memcached 实现用户登录的Demo(附源码)
  5. 【转】linux root用户ifconfig报command not found
  6. Android 中Activity生命周期分析(二):从AActivity 到BActivity过程分析
  7. 关于Spring的IOC和DI
  8. Html笔记(三)列表
  9. IIS与ASP.NET 通信机制深度剖析
  10. 解决Maven管理的项目下&quot;Missing artifact xxx bundle&quot;问题
  11. 感恩节活动中奖名单 i春秋喊你领礼物啦!
  12. [Swift]LeetCode551. 学生出勤纪录 I | Student Attendance Record I
  13. centos7环境下apache2.2.34的编译安装
  14. LCD调试1.0
  15. 网络互联技术(2)——前篇—【转载】电脑结构和CPU、内存、硬盘三者之间的关系
  16. ACM:油田(Oil Deposits,UVa 572)
  17. k8s-YAML配置文件
  18. linux c 编程 ------ 程序入口参数,即 main 参数
  19. VCL消息处理机制
  20. 前端_CSS

热门文章

  1. Java精通并发-同步方法访问标志与synchronized关键字之间的关系
  2. linux一些配置
  3. P1345 [USACO5.4]奶牛的电信[拆点+最小割]
  4. [Apio2010]patrol 巡逻
  5. CheckList 如何梳理可减少上线的验证时间(总结篇)
  6. MySQL-linux系统下面的配置文件
  7. YAML_15 include and roles
  8. 014_Python3 循环语句
  9. 百度UEditor富文本插件的使用
  10. Class T泛型和通配符泛型的区别