答案 0 :(得分:1)
看看https://jsfiddle.net/josedvq/3HG6d/
HTML
<div class="triangle-up-left"></div>
CSS
.triangle-up-left {
width: 0;
height: 0;
padding-bottom: 10%;
padding-left: 10%;
overflow: hidden;
}
.triangle-up-left:after {
content: "";
display: block;
width: 0;
height: 0;
margin-left: -500px;
border-bottom: 500px solid transparent;
border-left: 500px solid #4679BD;
}
他们使用技巧来使某些边界透明以创建三角形。有关此技术的更多信息,请访问How do CSS triangles work?