根本不受我控制的浮动(一定要贴原创真的很尴尬)

明明最近因为项目的事情都已经忙到十点甚至十二点了,时间一点都不像海绵里的水,在车上的时间可以看视频可是手机就没法做笔记或者编。真的很为难啊。

而且这个浮动,完全不听我指挥(其实是自己英文不好吧… ),然后发现,是我太粗心,粗心——能干啥呢?

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>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值