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{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>

原文地址:https://www.cnblogs.com/cwl168/p/3768355.html