码迷,mamicode.com
首页 > Web开发 > 详细

css 实现三角形

时间:2016-10-06 19:27:28      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#demo {
width: 0;
height: 0;
border-width: 200px;
border-style: solid;
border-color: transparent transparent red transparent;
}
.d2{
width:400px;
height:200px;
background-color: orange;
}
</style>
</head>
<body>
<div id="demo">

</div>
<div class="d2"> <img src="01_03.png" ></div>
</body>
</html>

css 实现三角形

标签:

原文地址:http://www.cnblogs.com/l742314100/p/5934095.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!