<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
body{
margin: 100px;
}
.span1{
display: inline-block;
border-left: 60px solid darkorange;
border-top: 50px solid transparent;
border-bottom: 50px solid transparent;
/*<!--transparent使border透明,隻保留擠壓效果-->*/
width: 0px;
height: 0px;
.span2{
border-left: 50px solid darkorange;
border-top: 50px solid orange;
border-bottom: 50px solid fuchsia;
border-right: 50px solid green;
width: 0px;
.span3{
background-color: blue;
width: 40px;
height: 40px;
</style>
</head>
<body>
<span class="span1">
</span>
<span class="span2">
<span class="span3">
</body>
</html>
<a href="http://s5.51cto.com/wyfs02/M01/8A/A3/wKioL1g2f8OQW3JbAAATWcVBWfg570.png-wh_500x0-wm_3-wmp_4-s_3220578747.png" target="_blank"></a>
本文轉自 matengbing 51CTO部落格,原文連結:http://blog.51cto.com/matengbing/1876127