社区
CSS
帖子详情
css如何实现图片圆角
xmutbbs1
2010-06-12 11:15:06
我说的是把一张图片的四个角处理成 圆角,通过使用纯CSS的代码。。。。
...全文
185
3
打赏
收藏
css如何实现图片圆角
我说的是把一张图片的四个角处理成 圆角,通过使用纯CSS的代码。。。。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
籽沫
2010-06-14
打赏
举报
回复
楼主你可以看看这个帖子是我以前回复别人的 说的蛮详细的 你有问题的话可以在给我留言
http://topic.csdn.net/u/20100521/10/36e194ab-53d5-49ac-9b65-3d8805500d50.html
zjtpiaoxue
2010-06-14
打赏
举报
回复
css 3 实现圆角更简单
http://fairyfish.net/2009/07/07/border-radius/
挨踢直男
2010-06-13
打赏
举报
回复
<!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=utf-8" />
<title>百度有啊css圆角方案</title>
<style>
.box1{background:url('http://www.lanrentuku.com/images/uppic/200901172112180.gif') repeat-x #1d6cb7;margin-top:1em;position:relative;zoom:1;width:778px;}
.box1 .tl,.box1 .tr,.box1 .bl,.box1 .br {width:5px;height:5px;position:absolute;background:url('http://www.lanrentuku.com/images/uppic/200901172112510.gif') no-repeat;overflow:hidden; }
.box1 .cc{height:40px; padding:5px;}
.box1 .tl {left:0;top:0;}
.box1 .tr {right:0;top:0;background-position:0 -5px;}
.box1 .bl {left:0;bottom:0;background-position:0 -10px;}
.box1 .br {right:0;bottom:0;background-position:0 -15px;}
.box2{border:1px solid #84cedd;margin-bottom:.8em;position:relative;zoom:1;width:778px;}
.box2 .tl,.box2 .tr,.box2 .bl,.box2 .br {width:6px;height:6px;position:absolute;background:url('http://www.lanrentuku.com/images/uppic/200901172113180.gif') no-repeat;overflow:hidden;}
.box2 .cc{height:40px; padding:5px;}
.box2 .tl {left:-1px;top:-1px;}
.box2 .tr {right:-1px;top:-1px;background-position:0 -6px;}
.box2 .bl {left:-1px;bottom:-1px;background-position:0 -12px;}
.box2 .br {right:-1px;bottom:-1px;background-position:0 -18px;}
.box3{position:relative;zoom:1;padding:1em 1.5em;margin:.5em 0 1em 0; background:#f1f6de}
.box3 .tl,.box3 .tr,.box3 .bl,.box3 .br {width:5px;height:5px;position:absolute;background:url('http://www.lanrentuku.com/images/uppic/200901172113470.gif') no-repeat;overflow:hidden;}
.box3 .cc{height:40px; padding:5px;}
.box3 .tl {left:0;top:0;}
.box3 .tr {right:0;top:0;background-position:0 -5px;}
.box3 .bl {left:0;bottom:0;_bottom:-1px;background-position:0 -10px;}
.box3 .br {right:0;bottom:0;_bottom:-1px;background-position:0 -15px;}
</style>
</head>
<body>
<div class="box1">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圆角一</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<p></p>
<div class="box2">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圆角二</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<p></p>
<div class="box3">
<span class="tl"></span><span class="tr"></span>
<div class="cc">
<p>圆角三</p>
</div>
<span class="bl"></span><span class="br"></span>
</div>
<br/><br/>更多代码请访问 <a href="http://www.lanrentuku.com/" target="_blank">懒人图库</a>
</body>
</html>
css
实现
圆角
边框,不用
图片
一个用
css
实现
的
圆角
边框实例,有兴趣的可以研究研究哦
css
+div漂亮的
圆角
tab选项卡
CSS
是美化这些元素的关键,特别是当我们要创建
圆角
效果时。
CSS
3引入了`border-radius`属性,允许我们为元素的边框设置
圆角
。例如,如果我们希望tab标题有10像素的
圆角
,可以这样写: ```
css
.tab-title { border-...
纯
css
实现
圆角
的代码
有的资料介绍了
css
3
实现
圆角
,但ie就是不支持,现在,不用任何
图片
,用纯
css
打造
圆角
,兼容任何浏览器。
div+
css
无
图片
实现
圆角
矩形(兼容Firefox)
div+
css
无
图片
实现
圆角
矩形(兼容Firefox)
DIV+
CSS
实现
圆角
DIV+
CSS
实现
圆角
,无需
图片
,兼容性好。
CSS
61,128
社区成员
60,711
社区内容
发帖
与我相关
我的任务
CSS
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
复制链接
扫一扫
分享
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章