答案 0 :(得分:2)
线性渐变可能吗?
div {
margin-top:50px;/*snippet button ! */
padding: 0.5em 3.2%;
font-size:20px;
background:
linear-gradient(60deg, transparent 3%, #49FFCE 3%, #49FFCE 97%, transparent 97%) no-repeat top,
linear-gradient(-60deg, transparent 3%, lime 3%, lime 97%, transparent 97%) no-repeat bottom;
background-size: 100% 50%;
}

<div>test
</div>
&#13;