<style type="text/css">
.div1{
background:#000080;
border:1px solid red;}
.div2{
background:#800080;
border:1px solid red;
height:100px;
margin-top:10px} .left{
float:left;
width:20%;
height:200px;
background:#DDD} .right{
float:right;
width:30%;
height:80px;
background:#DDD} /*清除浮动代码*/
.clearfix:after{
display:block;
clear:both;
content:"";
visibility:hidden;
height:0}
.clearfix{zoom:1}
</style> <div class="div1 clearfix">
<div class="left">Left</div>
<div class="right">Right</div>
</div>
<div class="div2">
div2
</div>

最新文章

  1. C#开源日志Nlog入门
  2. CentOS7 配置阿里云yum源
  3. Arch Linux PDF格式文件无法显示中文
  4. 生成元(Digit Generator ,ACM/ICPC Seoul 2005 ,UVa 1583)
  5. Linux内核等待队列
  6. 免解压版的Mysql的启动脚本,并且执行导入(windows)
  7. POJ 2586 Y2K Accounting Bug(枚举洪水问题)
  8. angular.js_$scope
  9. Python Web框架(URL/VIEWS/ORM)
  10. 获取android项目的数据库地址或者数据库名
  11. 根据点击事件去选取电脑中.rvt文件
  12. vue中data中引用本地图片报错404
  13. java web(三):ServletContext、session、ServletConfig、request、response对象
  14. Understanding about numerical stability, convergence and consistency
  15. svn+http+ad域
  16. Typecho 插件开发基础
  17. cos,sina,tan,cot
  18. IOS中position:fixed吸底时的滑动出现抖动的解决方案
  19. 如何最大限度提高.NET的性能
  20. 模型的偏差bias以及方差variance

热门文章

  1. Codeforces Round #490 (Div. 3)
  2. Microsoft JET Database Engine(0x80004005)未指定错误的解决方法
  3. 关于 Android 平台开发相关的有哪些推荐书籍?
  4. js 展开&amp;收缩 二种
  5. web 表单方式上传文件方法(不用flash插件)
  6. POJ 1698 Alice&amp;#39;s Chance(最大流+拆点)
  7. 邮箱大师WPZ协议包
  8. [转]FPGA网站推荐
  9. rtems 4.11 工具链
  10. 深入Asyncio(八)异步迭代器