圓:
.yuan{ width:100px; height:100px; -moz-border-radius:50%; -webkit-border-radius:50%; border-radius:50%; background-color:red;}
橢圓
.oval { width: 200px; height: 100px; background-color: red; -moz-border-radius: 100px / 50px; -webkit-border-radius: 100px / 50px; border-radius: 100px / 50px; }
箭頭:
.arrow{ content: ''; position: absolute; width: 30px; height: 30px; border: 10px solid #f5b24a; -webkit-transform: rotate(-135deg); -moz-transform: rotate(-135deg); -o-transform: rotate(-135deg); -ms-transform: rotate(-135deg); transform: rotate(-135deg); border-top: none; border-right: none; top: 9px;}
三角形:
.rencentle { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red;}
本文轉自:http://www.manongjc.com/article/57.html
更多關于css制作圖案的文章:
css border實現的三角形圖案
css 巧用border屬性制作各種圖形(矩形,梯形,三角形)
css制作的圓,三角形,橢圓,箭頭圖標
css3 border-radius圓角盒子
去掉iphone Safari瀏覽器下input submit 和按鈕的圓角
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com