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

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

 

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

 

<!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是一副图片实现的圆角。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值