2019-11-18 | 551

问答用纯 CSS 创建一个三角形的原理是什么?

答案:
span {
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 40px solid #ff0000;
}


发表评论

    评价:
    Rich Text Editor
    最新评论