首页 > Web开发 > 详细

CSS实现三角形

时间:2019-03-17 16:19:18      阅读:145      评论:0      收藏:0      [点我收藏+]

 

?

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		body{
			background:blue;
		}
		div{
			width:0px;
			height: 0px;
			border-top:50px solid transparent;
			border-right:50px solid red;
			border-bottom:50px solid transparent;
			border-left:50px solid transparent;
		}
	</style>
</head>
<body>
	<div></div>
</body>
</html>

?

 

CSS实现三角形

原文:https://www.cnblogs.com/XFlyaa/p/10547339.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!