Square(正方形)web
#square{ width:100px; height:100px; backgroud:red; }
Rectangle(矩形)spa
#rectangle { width: 200px; height: 100px; background: red;
Circle(圓形)code
#circle { width: 100px; height: 100px; background: red; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 50px; }
/ 可使用百分比值(大於50%),可是低版本的Android不支持 /ip
Oval(橢圓形)ci
#oval { width: 200px; height: 100px; background: red; -moz-border-radius: 100px / 50px; -webkit-border-radius: 100px / 50px; border-radius: 100px / 50px; }
/ 可使用百分比值(大於50%),可是低版本的Android不支持 /it
Triangle Up(向上的三角形)class
#triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; }
Triangle Down(向下)cli
#triangle-down { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid red; }
Triangle Left(向左)webkit
#triangle-left { width: 0; height: 0; border-top: 50px solid transparent; border-right: 100px solid red; border-bottom: 50px solid transparent; }
Triangle Right(向右)方法
#triangle-right { width: 0; height: 0; border-top: 50px solid transparent; border-left: 100px solid red; border-bottom: 50px solid transparent; }