<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Document</title>
<style type="text/css">
div#trip1{
width: 0px;
height: 0px;
border-top: 50px solid transparent ;
border-right: 50px solid transparent ;
border-bottom: 50px solid red;
border-left: 50px solid transparent ;
}
div#trip2{
position: relative;
top: -60px;
width: 0px;
height: 0px;
border-top: 60px solid transparent ;
border-right: 60px solid transparent ;
border-bottom: 60px solid red;
border-left: 60px solid transparent ;
}
div#ju{
position: relative;
top: -60px;
width: 20px;
height: 100px;
margin-left: 50px;
background-color: red;
}
</style>
</head>
<body>
<div id="trip1">
</div>
<div id="trip2">
</div>
<div id="ju">
</div>
</body>
</html>
HTML&CSS学习1——画圣诞树
最新推荐文章于 2024-02-25 19:44:33 发布