复习一下两列布局。
来源:互联网 发布:北大青鸟java视频教程 编辑:程序博客网 时间:2024/05/29 08:33
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>两列布局</title> <link rel="stylesheet" href="http://www.zhangweiwei.cn/demo/reset.css"> <style> .wrap { width: 100%; height: 500px; } .left { width: 300px; height: 500px; float: left; background-color: yellow; margin-right: -100%; } .right { width: 300px; height: 500px; float: right; margin-left: -100%; background-color: red; } .main { width: 100%; float: left; } .main .content { margin-left: 320px; background-color: black; height: 500px; } .left1 { float: right; margin-left: -100%; margin-right: auto; } .main .content1 { margin-right: 320px; margin-left: auto; } .cont { margin-right: 320px; height: 500px; background-color: yellow; } </style></head><body> <div class="wrap"> <div class="left"> </div> <div class="main"> <div class="content"></div> </div> </div> <br> <div class="wrap"> <div class="left left1"> </div> <div class="main"> <div class="content content1"></div> </div> </div> <br> <div class="wrap"> <div class="main"> <div class="cont"> </div> </div> <div class="right"> </div> </div> <br></body></html>
上班之余写着玩玩。居然觉得有点费脑。哈哈
1 0
- 复习一下两列布局。
- 两列布局
- CSS两列布局
- CSS 两列布局
- 两列布局
- web 两列布局
- CSS两列布局
- css 两列布局
- 两列自适应布局
- 两列同行布局
- css两列布局
- 两列自适应布局
- 两列布局
- 页面布局:两列布局
- 三列布局 两列布局
- 两列布局、三列布局
- 两列布局宽度自适应
- 两列布局代码示例
- codevs--1026 逃跑的拉尔夫
- VS 操作 word 出错 解决方案
- 使用Gson反序列化Json数据失败,报错JsonSyntaxException: java.lang.IllegalStateException
- Android Base64编码解码
- Metasploitable2使用指南
- 复习一下两列布局。
- 多态的作用——通用性
- CentOS 7.X设置自定义开机启动,添加自定义系统服务
- CodeForces 664B Rebus (调整策略)
- CSS学习
- 遗传算法
- 【小松教你手游开发】【unity实用技能】拓展函数(给系统代码添加可直接使用的接口)
- 如何通过console口连接到交换机,并查看配置
- HDU 2852 KiKi's K-Number(单点更新,求值)