Rounded trapezoid with CSS

后端 未结 5 1097
孤城傲影
孤城傲影 2020-12-11 21:31

I\'m having a slight problem with css. I need a trapezoid div which upper left corner(the one with the angle above 90 degrees) is rounded. I already know that this:

5条回答
  •  一向
    一向 (楼主)
    2020-12-11 21:58

    Use Adobe Illustrator or any other software to draw a shape and than save it as SVG code, you can use SVG directly on the page but IE8 and lower will ignore it. If you need to support older versions of IE you can use Raphael.js to draw your SVG element.

    Rendering SVG polygons in Raphael Javascript library

提交回复
热议问题