题解 | #圣诞树#
圣诞树
http://www.nowcoder.com/practice/4924913926d94e96a70bbf2a50847852
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<style type=\"text/css\">
.topbranch {
width: 0px;
height: 0px;
/*
* TODO: 上枝叶效果
*/
float:left;
margin-left:100px;
border:solid transparent 100px;
border-bottom-color:green;
margin-bottom:-200px;
}
.middleBranch {
width: 0px;
height: 0px;
/*
* TODO: 中枝叶效果
*/
border:solid 200px transparent;
border-bottom-color:green;
}
.base {
/*
* TODO: 树干效果
*/
margin-left:165px;
width:70px;
height:200px;
background-color:gray;
}
</style>
</head>
<body>
<section class=\"topbranch\"></section>
<section class=\"middleBranch\"></section>
<section class=\"base\"></section>
</body>
</html>