css中float浮动的消除
来源:互联网 发布:java notify wait原理 编辑:程序博客网 时间:2024/05/16 07:39
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>float浮动的消除</title> <style> #header{ height: 100px; background-color: yellow; } #body{ height: 300px; background-color: green; } .clearfix:after{ content: ""; display: table; clear: both; } #left{ height: 90%; width: 15%; background-color: #FF6500; float: left; } #center{ height: 90%; width: 70%; background-color: blueviolet; float: left; } #right{ height: 90%; width: 15%; background-color: aquamarine; float: left; } #bottom{ height: 50px; background-color: red; clear: both; } #foot{ height: 100px; background-color: blue; } </style></head><body><div> <div id="header"></div> <div id="body" class="clearfix"> <!-- 当父元素中没有任何非浮动元素 使用clearbox 相当于在底部加id为bottom的div--> <div id="left"></div> <div id="center"></div> <div id="right"></div> <!--<div id="bottom">我是底部div</div>--> </div> <div id="foot"></div></div></body></html>
0 0
- css中float浮动的消除
- float浮动的消除
- float浮动的消除
- 用clearfix:after消除float:left的css浮动效果
- float浮动的消除1
- float浮动的消除2
- CSS中浮动(Float)的作用
- css 中浮动(Float)的作用
- CSS中,float浮动的理解
- CSS中元素内容的浮动属性float
- css中消除浮动有哪些方式?
- CSS中Float(浮动)概念
- css中float浮动问题(1)
- css中float浮动问题(2)
- css中float浮动原理及使用方法
- css中float浮动原理及使用方法
- HTML5第六课时,float浮动影响的消除,clear
- CSS—消除浮动
- eclipse部署web项目至本地的tomcat但在webapps中找不到
- SSH框架总结
- 阅读effective stl 有感(二)
- Android-性能相关
- [转载]阿里前端笔试总结
- css中float浮动的消除
- SpringMVC页面传参到后台,日期字符串报错处理
- 决策树算法理论
- Yii2_自定义应用
- X210的uboot配置和编译
- csdn积分与等级关系
- 【uboot】mips架构uboot启动分析
- 像素与实际尺寸
- VMware Workstation12安装Ubuntu 16.04和VMware Tools教程