明明最近因为项目的事情都已经忙到十点甚至十二点了,时间一点都不像海绵里的水,在车上的时间可以看视频可是手机就没法做笔记或者编。真的很为难啊。
而且这个浮动,完全不听我指挥(其实是自己英文不好吧… ),然后发现,是我太粗心,粗心——能干啥呢?
em 长度单位、px 像素、百分比
<html>
<head>
<style type="text/css">
div.container
{
width:100%;
margin:0px;
border:0px solid gray;
line-height:150%;
}
div.header,div.footer
{
padding:3em;
color:white;
background-color:yellow;
}
div.left
{
float:left;
width:100px;
margin:0px;
background-color:blue;
padding-top:9em;
}
div.content
{
float:left;
width:100px;
margin:0px;
background-color:black;
padding-top:7em;
}
div.right{
float:left;
width:100px;
margin:0px;
background-color:red;
padding-top:10em;
}
</style>
</head>
<body>
<div class="container"></div>
<div class="header"></div>
<div class="left"></div>
<div class="right"></div>
<div class="content"></div>
<div class="footer"></div>
</div>
</body>
</html>