• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
00fairy00の学习园地
博客园    首页    新随笔    联系   管理    订阅  订阅
NO.12 无图片圆角(1)

 以前每次遇到圆角我都是使用的图片,但是不知道不用图片应该如何实现,搜索了一下

有很多方法实现无图片圆角,今天先学习一个

 

Code
<!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>css圆角效果 无图片实现圆角框</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<style type="text/css">
div.RoundedCorner
{background: #9BD1FA}
b.rtop, b.rbottom
{display:block;background: #FFF}
b.rtop b, b.rbottom b
{display:block;height: 1px;overflow: hidden; background: #9BD1FA}
b.r1
{margin: 0 5px}
b.r2
{margin: 0 3px}
b.r3
{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4
{margin: 0 1px;height: 2px}
</style>
</head>
<body>
<div class="RoundedCorner">
<b class="rtop">
    
<b class="r1"></b>
    
<b class="r2"></b>
    
<b class="r3"></b>
    
<b class="r4"></b>
</b>
<br>
无图片实现圆角框
<br><br>
<b class="rbottom">
    
<b class="r4"></b>
    
<b class="r3"></b>
    
<b class="r2"></b>
    
<b class="r1"></b>
</b>
</div>
</body>
</html>

 

这个实现起来我觉得还是比较繁琐了,而且用到了很多没有作用的层!~~
posted on 2009-11-20 16:34  00fairy00  阅读(270)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3