一、清除浮动的方式
1.给父级设置高度(height)
2.给父级设置overflow:hidden
3.空div设置clear:both属性
二、盒子上下居中的方法
1.
.father{
position:relative;
}
.son{
position:absolute;
top:0;
bottom:0;
left:0;
right:0;
margin:auto;
}
2.
.box {
position: relative;
width: 200px;
height: 300px;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -150px;
3.
display:flex
.box2{
display: flex;
justify-content:center;
align-items:Center;
}
三、基本数据类型
string,boolean,object,number,underfine,null