CSS文件属性设置02
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.c1{
width: 100%; #宽度(原来的100%,就是本身)
height: 300px; #高度
border:1px solid red; #添加border线
line-height: 300px; #border线边框高度
}
.c2{
width: 90px; #宽度
height: 70px; #高度
#背景色
font-size: 22px; #文字大小
text-align: center; #水平居中
line-height: 70px; #border线边框高度
}
</style>
</head>
<body>
<div class="c1">huchangxi</div>
<div class="c2"> < </div>
</body>
</html>