【发布时间】:2019-01-15 20:35:17
【问题描述】:
我正在制作一个网站,我希望页脚看起来像这样:https://imgur.com/a/JuHHHkM
它基本上是两个相互重叠的三角形。我试着做这样的三角形:
#triangle-bottomleft {
width: 0;
height: 0;
border-bottom: 100px solid red;
border-right: 100px solid transparent;
}
但是因为宽度取决于你在右边框中放了多少像素,所以我不能使用 width: 100%。
还有其他选择吗? 提前致谢
【问题讨论】: