search

Home  >  Q&A  >  body text

css3 - 纯css画图,圆角三角形

来个高手
求用纯css画一个带圆角的三角形

顺便再请假一下,对于用css来画图
有什么重点?
现在撑死画个梯形三角形什么的

高洛峰高洛峰2778 days ago814

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 11:17:34

    cssp {
        width: 0;
        height: 0;
        transform: rotate(45deg);
        border-width: 20px;
        border-color: #000 transparent transparent #000;
        border-style: solid;
        border-top-left-radius: 10px;
    }
    

    I didn’t make it clear what my requirements were, so I just drew one casually.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:17:34

    Look at this https://css-tricks.com/examples/ShapesOfCSS/

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:17:34

    How to add borders to graphics drawn with css? Can it only be achieved by overlapping two graphics?

    reply
    0
  • Cancelreply