用css和html写一个三角形


```javascript

```css
<!DOCTYPE HTML>
<html lang = "en">
	<head>
		<meta charset = "UTF-8"/>
		<style>
			.box{
     
				width:60px;
				height:0px;
				border:1px solid black
			}
			.a{
     
				transform:translateY(9px) rotate(25deg) translateX(2px);
			}
			.b{
     
				transform:rotate(90deg) translateY(25px);
			}
			.c{
     
				transform:translateY(20px);
			}
		</style>
	</head>
	<body>
		<div class = "box a"></div>
		<div class = "box b"></div>
		<div class = "box c"></div>
	</body>
</html>

你可能感兴趣的:(javascript)