How to make 3-corner-rounded triangle in CSS

前端 未结 7 2516
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 03:34

I\'d like to achieve a custom-colored shape like this using no Javascript: \"3

Curren

7条回答
  •  迷失自我
    2020-11-27 04:17

    Use an image of some sort. That's what images are for. If you need it to scale, SVG is a good choice, otherwise, just use a png as a background, or an element if it's part of content.

    If you absolutely must have it in a CSS file, you could try data: urls (not supported in IE7 and below).

提交回复
热议问题