CSS三角
程序员文章站
2022-05-26 22:22:21
...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS三角</title>
<style>
.box1{
width: 0;
height: 0;
border-top:100px solid pink;
border-right:100px solid red;
border-bottom:100px solid green;
border-left:100px solid blue;
}
.box2{
margin :0 auto;
width: 0;
height: 0;
border:50px solid transparent;
border-top:100px solid pink;
}
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html>
上一篇: 排序算法---快速排序(4)
下一篇: python-排序算法