css3 画半圆和1/4圆
生活随笔
收集整理的這篇文章主要介紹了
css3 画半圆和1/4圆
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
半圓:
#circle1 {
width: 100px;
height: 200px;
background-color: #a72525;
-webkit-border-radius: 100px 0px 0px 100px;
}
寬度為高度的一半,相應的圓角值,right 和top或bottom 值為0。
#circle2 {
width: 200px;
height: 200px;
background-color: #a72525;
-webkit-border-radius: 200px 0 0 0;
}
寬高相同,圓角值和寬高相同,其他為0。
轉載于:https://www.cnblogs.com/liuna/p/5379852.html
總結
以上是生活随笔為你收集整理的css3 画半圆和1/4圆的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Maven介绍,包括作用、核心概念、用法
- 下一篇: 嵌入式 linux下利用backtrac