html中的圆角边框

border-radius:20px;

radius:以某某为半径画圆。

 

如何制作一个圆形:

div{height:150px;//像素的一半,再加上边框的像素

  width:150px;

  border:#0c3 20px solid;

  border-left-color: red;

  border-bottom-color:green;

  border-right-color:blue;

  border-top-color:pink;

  border-radius:75+20=95px;

  }

 

posted @ 2014-12-12 19:01  小军的代码库  阅读(836)  评论(0编辑  收藏  举报