how to make inside border-radius in css?

前端 未结 2 1924
小蘑菇
小蘑菇 2021-01-27 02:11

How can I make the border radius towards inside?

.circle {
   width:100px;
   height:100px;
   background-color:solid red;
   border-radius:-50px 50px -50px [ent         


        
2条回答
  •  长发绾君心
    2021-01-27 02:48

    SVG

    You should not use css to create complex shapes.
    Use SVG instead.

    Shape created with a SVG Path
    In addition to 3 curves in the path

    Highlighted each curve so you can see how to create the final shape.

    
      
      
      
    
    
    
      
    

提交回复
热议问题