简单圆角矩形框

分别制作四个角:

left_top.gif    

right_top.gif

left_bottom.gif

right_bottom.gif

具体放置位置:

代码如下:

<!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>
</head>
<style type="text/css">
.main{
 width:300px;
 margin:0;
 padding:0;
 background:#cc6633 url(left_top.gif) no-repeat;
}
.main h3{
 margin:0;
 padding:30px 0 0 30px;
 background: url(right_top.gif) no-repeat right top;
}
.main p{
 margin:0;
 padding:0;
 background:url(left_bottom.gif) no-repeat left bottom;
}
.main p span{
 margin:0;
 padding:0 0 5px 10px;
 text-indent:2em;
 display:block;
 background:url(right_bottom.gif) no-repeat right bottom;
}
</style>
<body>
<div class="main">
<h3>这是标题</h3>
<p><span>这是标题内容聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见聊聊看见了空间看了看见了看见了看见了看见</span></p>
</div>
</body>
</html>

posted @ 2011-10-30 08:56  蓝之光  阅读(295)  评论(4编辑  收藏  举报