css高度已知,左右定宽,中间自适应三栏布局:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style> *{
margin: 0;
padding: 0;
} .box>div{
height: 100px;
} .box .left{
background-color: red;
width: 300px;
float: left;
} .box .right{
background-color: blue;
width: 300px;
float: right;
} .box .center{
text-align: center;
line-height: 100px;
color: #fff;
background-color: orange;
}
</style>
</head>
<body> <div class="box">
<div class="left"></div>
<div class="right"></div>
<div class="center">第一种方法:浮动</div>
</div> </body>
</html>

  

最新文章

  1. 【poj1733】 Parity game
  2. css font-family 字体全介绍,\5b8b\4f53 宋体 随笔
  3. jQuery4ajax
  4. Shell脚本——中继DHCP服务器自动部署
  5. MFC添加自定义消息
  6. 收集的jquery插件
  7. sed 入门
  8. SQLServer多表联查,多表分页查询
  9. main函数中System.exit()的作用
  10. https://www.cnblogs.com/zoro-robin/p/6110188.html
  11. Spark_RDD之RDD操作简介
  12. C# 多窗体之间方法调用
  13. UCore-Lab0
  14. Ubuntu18.04 Redis主从复制
  15. HDU 5701 中位数计数 (思维题)
  16. mysqldump 导出统一限制每张数据表导出的记录数
  17. sharepoint 2013 search configuration
  18. sql 两列数据交换
  19. some issues that you should be take care of when use the plupload module
  20. Codeforces Round #266 (Div. 2)

热门文章

  1. Java之网络编程UDP和TCP
  2. hadoop集群监控工具Apache Ambari安装配置教程
  3. centos7命令行和图形界面的相互切换(附centos7安装配置教程)
  4. 6.(转载)SSRF漏洞挖掘经验
  5. 功防技术与实践第1.2章,kali初步了解
  6. swift中的类拓展 extension
  7. IOHelper(自制常用的输入输出的帮助类)
  8. 【Java】ServiceLoader源码分析
  9. JSONCPP开发环境搭建
  10. 用python实现杨辉三角