How to create a ribbon shape in CSS

前端 未结 8 930
旧时难觅i
旧时难觅i 2021-01-05 15:00

http://jsfiddle.net/6HyjZ/

.bookmarkRibbon{
     width:0; 
     height:100px; 
     border-right:50px solid blue;
     border-left:50px solid blue;
     bord         


        
8条回答
  •  被撕碎了的回忆
    2021-01-05 15:24

    If you 'rotate' the css properties, it rotates the form by 90 degrees.

    .bookmarkRibbon{
         width:100px; 
         height:0; 
         border-bottom:50px solid blue;
         border-top:50px solid blue;
         border-left:30px solid transparent;
    }
    

    http://jsfiddle.net/6HyjZ/6/

提交回复
热议问题