CSS画常用小图形

2017-06-14  本文已影响0人  Love小六六
div {
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin: 100px;
    background-color: red;
}
<div>矩形</div>

效果图


border-radius:50%

border-radius圆角的四个值按顺序取值分别为:左上、右上、右下、左下。

    border-radius: 100px 100px 0 0;
        height:50px

border-radius: 100px 0 0;
border-radius: 100px 0;
transform: rotate(45deg);
width: 0px;
height: 0px;            
border:50px solid transparent;       
border-bottom-color: #8E8DCC;            
margin: auto;          
margin-top: 50px;
 .circle{           
width: 0px;           
height: 0px;          
border:50px solid transparent;            
border-bottom-color: #8E8DCC;            
position: relative;
 }

.circle::after{           
content: "";           
width: 0;            
height: 0;            
border: 50px solid transparent;            
border-bottom-color: #ffffff;           
position:absolute;            
top: -49px;            
left:-50px;
 }
上一篇下一篇

猜你喜欢

热点阅读