写了一个特别简单的html圣诞树
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>1114-2</title>
<style>
.s1{
width: 0px;
height: 0px;
border-color: transparent;
border-bottom-color: rgb(24, 232, 59);
border-width: 50px;
border-style: solid;
margin: 0 auto;
}
.s2{
width: 0px;
height: 0px;
border-color: transparent;
border-bottom-color: rgb(24, 232, 59);
border-width: 70px;
border-style: solid;
margin: -70px auto 0;
}
.s3{
width: 0px;
height: 0px;
border-color: transparent;
border-bottom-color: rgb(24, 232, 59);
border-width: 90px;
border-style: solid;
margin: -90px auto 0;
}
.s4{
width: 20px;
height: 40px;
background-color: brown;
margin: 0px auto ;
}
</style>
</head>
<body>
<div class="s1"></div>
<div class="s2"></div>
<div class="s3"></div>
<div class="s4"></div>
</body>
</html>