如何在 CSS 中画一条从宽开始到一个点结束的线
How do I draw a line in CSS that starts wide and ends in a point
我讨厌画无聊的直线。
我如何使用 html/css 画一条开始宽结束窄的线
similar to the one shown in this image.
这是哈利提到的一个例子
.triangle{
border-top:10px solid transparent;
border-bottom:10px solid transparent;
border-right:300px solid red;
}
<div class="triangle"></div>
我讨厌画无聊的直线。 我如何使用 html/css 画一条开始宽结束窄的线 similar to the one shown in this image.
这是哈利提到的一个例子
.triangle{
border-top:10px solid transparent;
border-bottom:10px solid transparent;
border-right:300px solid red;
}
<div class="triangle"></div>