Skip to content

CSS 实践

用 CSS 画一个三角形

css
.triangle {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-top: 80px solid steelblue;
}
.triangle {
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-top: 80px solid steelblue;
}