一、布局相关
1、设置宽高
width:600px;
height:200px;
2、设置绝对位置布局
position: fixed;
top: 50px;
left: 50px;
3、设置背景色
background-color: white;
4、设置边框
border: 1px solid black;
border: 1px dashed black;
5、设置div水平居中对齐
margin-left: auto; margin-right: auto;
6、设置左浮动
float: left;
二、文字相关
1、设置文本水平居中对齐
text-align: center;
2、设置文本垂直居中对齐
height: 100px;
line-height: 100px;
3、设置文本的大小
font-size: 18px;
4、设置文本的颜色
color: red;