圆角的制作方法

来源:互联网 发布:acrobat dc mac破解版 编辑:程序博客网 时间:2024/04/26 19:49

<!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>圆角的制作</title>
<style>
* { font-size:12px}
.roundbox { width:400px }/* 根据需要可改变不同的宽度 */
.roundbox div { padding:8px; border-left:1px solid red; border-right:1px solid red;height:300px}/* 根据需要可改变不同的高度 */
.r {border-right:1px solid red;border-left:1px solid red;height:1px;font-size:1px;overflow:hidden;display:block;}
.a1 {margin:0 5px; background:red;}
.a2 {margin:0 3px; border-right-width:2px; border-left-width:2px;}
.a3 {margin:0 2px;}
.a4 {margin:0 1px; height:2px;}
.a5 {height:auto;font-size:medium;}
</style>
</head>

<body>
<div class="roundbox">
   <b class="r a1"></b><b class="r a2"></b><b class="r a3"></b><b class="r a4"></b>
   <div>这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,这里是一个宽400px的圆角矩形,</div>
   <b class="r a4"></b><b class="r a3"></b><b class="r a2"></b><b class="r a1"></b>
</div>
</body>
</html>

原创粉丝点击