***************************************************************************************************************************************************
先占个坑,html入门两章看我前边的,不再重复。
2019.1.30 css浮动属性
***************************************************************************************************************************************************
一.css浮动属性
css的用来修饰样式的属性之一:
如果两个div排一块
<style>
.per{
width: 200px;
height: 200px;
background: orange;
margin:10px ;
}
</style>
<div class="per"></div>
<div class="per"></div>
这样的话结果是这样的
但是,如果加上float
<style>
}
.per{
width: 200px;
height: 200px;
background: orange;
float: left;
margin:10px ;
}
</style>
从左向右一次排列哦,在同一级下