cwl168

css3简单的圆角框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>圆角效果border-radius</title>
<style type="text/css">
body,div{margin:0;padding:0;}
.border{width:200px;border:2px solid gray;height:20px;
-moz-border-radius:2px;/*仅Firefox支持,实现圆角效果*/
-webkit-border-radius:2px;/*仅Safari,Chrome支持,实现圆角效果*/
-khtml-border-radius:2px;/*仅Safari,Chrome支持,实现圆角效果*/
border-radius:10px;/*仅Opera,Safari,Chrome支持,实现圆角效果*/
}
</style>
</head>
<body>
<div class="border">border radius</div>
</body>
</html>

posted on 2014-06-04 17:28  cwl168  阅读(110)  评论(0编辑  收藏  举报

导航