`
caiceclb
  • 浏览: 239540 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

最简洁图片圆角边框-无需额外标签

阅读更多

目前所能写出的最简洁圆角边框了,不需要额外标签。也可以只要一副图片,但这时就得添加一个额外标签。

 

这是以前写的,今天又去写的时候,发现还没有以前写的那么感觉上优雅了。还是记下来,以免后忘。

 

<!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>
  <title> new document </title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  <script type="text/javascript">
  <!--
	
  //-->
  </script>
  <style type="text/css">
	body {background:#fff;}
	div {overflow:hidden;zoom:1;}
	.box {padding-bottom:4px;width:190px;background:url("c-b-b.png") no-repeat left bottom;}
		.box h3 {margin:0;padding:0;background:url("t-bg.png") no-repeat;height:20px;}
		.box .c {border:1px solid #5c9ec0;border-width:0 1px;padding:10px;}
  </style>
 </head>

 <body>

	<div class="box">
		<h3>title</h3>
		<div class="c">
			<p>content</p>
		</div>
	</div>
 </body>
</html>

 

 

 

主要css:

 

.box {padding-bottom:4px;width:190px;background:url("c-b-b.png") no-repeat left bottom;}
    .box h3 {margin:0;padding:0;background:url("t-bg.png") no-repeat;height:20px;}
    .box .c {border:1px solid #5c9ec0;border-width:0 1px;padding:10px;}

 

 

 

附件box2.zip是一副图片实现的圆角。

  • box.zip (1.5 KB)
  • 下载次数: 69
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics