布局
来源:互联网 发布:飞机晚点软件 编辑:程序博客网 时间:2024/05/11 01:28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
header{
height: 100px;
background-color: gold;
}
section{
background-color: #585858;
height: 400px;
}
#child1{
width: 20%;
height: 100%;
background-color: orange;
float: left;
/*margin-left: 10px;*/
padding: 10px;
/*margin border padding都会影响页面的布局,content不变,
实际宽度为:在在content的基础上加上margin,border或paddoong*/
border: 10px solid green;
/*变态盒模型 border-box 添加padding或者border不会影响页面布局,
只会挤压页面内容的content*/
box-sizing: border-box;
overflow:scroll;
}
#child2{
width: 60%;
height: 100%;
background-color: blueviolet;
float: left;
}
#child3{
width: 20%;
height: 100%;
background-color: brown;
float: left;
}
</style>
<title>布局</title>
</head>
<body>
<header></header>
<section>
<div id="child1">
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
</div>
<div id="child2"></div>
<div id="child3"></div>
</section>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
header{
height: 100px;
background-color: gold;
}
section{
background-color: #585858;
height: 400px;
}
#child1{
width: 20%;
height: 100%;
background-color: orange;
float: left;
/*margin-left: 10px;*/
padding: 10px;
/*margin border padding都会影响页面的布局,content不变,
实际宽度为:在在content的基础上加上margin,border或paddoong*/
border: 10px solid green;
/*变态盒模型 border-box 添加padding或者border不会影响页面布局,
只会挤压页面内容的content*/
box-sizing: border-box;
overflow:scroll;
}
#child2{
width: 60%;
height: 100%;
background-color: blueviolet;
float: left;
}
#child3{
width: 20%;
height: 100%;
background-color: brown;
float: left;
}
</style>
<title>布局</title>
</head>
<body>
<header></header>
<section>
<div id="child1">
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育杰瑞教育
</div>
<div id="child2"></div>
<div id="child3"></div>
</section>
</body>
</html>
0 0
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 布局
- 教程 | 理解和实现自然语言处理终极指南(附Python代码)
- ubuntu14.04安装QT4.7.4
- 欢迎使用CSDN-markdown编辑器
- 各种距离
- hadoop1.2.1伪集群搭建
- 布局
- Linux上的GetTickCount函数
- <%@ include file="URL" %>
- javascript中this对象的指向问题
- http协议基础知识总结
- texmacs 源码安装
- 【模拟】洛谷 P1003 铺地毯
- 解决Eclipse SVN文件冲突详解
- 对象或库文件“XXX.lib”是使用比创建其他对象所用编译器旧的编译器创建的;请重新生成旧的对象和库