| 
                         15.平行四边形 
- #parallelogram {  
 - width: 150px;  
 - height: 100px;  
 - transform: skew(20deg);  
 - background: red;  
 - }  
 
  
16.星星 (6角) 
- #star-six {  
 - width: 0;  
 - height: 0;  
 - border-left: 50px solid transparent;  
 - border-right: 50px solid transparent;  
 - border-bottom: 100px solid red;  
 - position: relative;  
 - }  
 - #star-six:after {  
 - width: 0;  
 - height: 0;  
 - border-left: 50px solid transparent;  
 - border-right: 50px solid transparent;  
 - border-top: 100px solid red;  
 - position: absolute;  
 - content: "";  
 - top: 30px;  
 - left: -50px;  
 - }  
 
  
17.星星 (5角) 
- #star-five {  
 - margin: 50px 0;  
 - position: relative;  
 - display: block;  
 - color: red;  
 - width: 0px;  
 - height: 0px;  
 - border-right: 100px solid transparent;  
 - border-bottom: 70px solid red;  
 - border-left: 100px solid transparent;  
 - transform: rotate(35deg);  
 - }  
 - #star-five:before {  
 - border-bottom: 80px solid red;  
 - border-left: 30px solid transparent;  
 - border-right: 30px solid transparent;  
 - position: absolute;  
 - height: 0;  
 - width: 0;  
 - top: -45px;  
 - left: -65px;  
 - display: block;  
 - content: '';  
 - transform: rotate(-35deg);  
 - }  
 - #star-five:after {  
 - position: absolute;  
 - display: block;  
 - color: red;  
 - top: 3px;  
 - left: -105px;  
 - width: 0px;  
 - height: 0px;  
 - border-right: 100px solid transparent;  
 - border-bottom: 70px solid red;  
 - border-left: 100px solid transparent;  
 - transform: rotate(-70deg);  
 - content: '';  
 - }  
 
  
                        (编辑:91站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |