IT编程技术

天行健,君子以自强不息;地势坤,君子以厚德载物;

【前端实战】-CSS实现向上三角箭头

2024-9-4 博主:Splendor

CSS实现向上三角箭头


<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div {
				width: 0px;
				height: 0px;
				border: 50px solid transparent;
				border-bottom-color: red;
				border-right-color: transparent;
				border-left-color: transparent;
			}
		</style>
	</head>
	<body>
		<div></div>
	</body>
</html>
网页地址:
https://www.excelstudy.icu/blog/HtmlTest/02xiaosanjiaoshixian/