答案 0 :(得分:0)
答案 1 :(得分:0)
您可以使用以下边框执行此类操作:before& :后 http://codepen.io/anon/pen/gWOwpz
.container {
margin-top:40px;
}
.arrow {
position: relative;
height: 80px;
margin-bottom: 20px;
}
.arrow--grey {
background-color: #aaa;
}
.arrow--green {
background-color: #037b03;
}
.arrow:before {
left:0;
position: absolute;
border-left: 40px solid #fff;
border-top: 40px solid transparent;
border-bottom: 40px solid transparent;
box-sizing: border-box;
}
.arrow:after {
right:0;
position: absolute;
border-left: 40px solid transparent;
border-top: 40px solid #fff;
border-bottom: 40px solid #fff;
box-sizing: border-box;
}
.arrow--grey:before, .arrow--grey:after {
content: "";
}
.arrow--green:after {
content: "";
}

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="container">
<div class="row">
<div class="arrow arrow--grey col-xs-2"></div>
</div>
<div class="row">
<div class="arrow arrow--green col-xs-2"></div>
</div>
</div>
&#13;