上面2个圆角css,纯div+css2实现圆角

本文介绍了一种使用纯div和CSS实现圆角效果的方法,并确保了该方法在各种浏览器中的兼容性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

之前一直实现圆角都是靠图片(自己知识还不够),通过上网找资料学习,终于找到了纯div+css实现的圆角效果,兼容各种浏览器。

String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

My JSP 'index.jsp' starting page

#picture {width:600px; height:400px; background:url() center top; padding:80px 20px 0 20px; margin:15px;}

.xsnazzy h1, .xsnazzy h2, .xsnazzy p {margin:0 10px; letter-spacing:1px;}

.xsnazzy h1 {font-size:2.5em; color:#fc0;}

.xsnazzy h2 {font-size:2em; color:#234; border:0;}

.xsnazzy p {padding-bottom:0.5em; color:#eee;}

.xsnazzy h2 {padding-top:0.5em; padding-left:10px;}

.xsnazzy {background: transparent; margin:1em;}

.xsnazzy em {display:block; width:0; height:0; color:#d8d8ee; overflow:hidden; border-top:12px solid #fff; border-left:12px dotted transparent; border-right:12px dotted transparent; margin-left:50px;}

* html .xsnazzy em {width:24px; height:12px; w\idth:0; hei\ght:0;}

.xsnazzy span {display:block; width:0; height:0; color:#fff; overflow:hidden; border-top:10px solid #7f7f9c; border-left:10px dotted transparent; border-right:10px dotted transparent; margin-left:52px; margin-top:-15px;}

.xb1, .xb2, .xb3, .xb4, .xb5, .xb6, .xb7 {display:block; overflow:hidden; font-size:0;}

.xb1, .xb2, .xb3, .xb4, .xb5, .xb6 {height:1px;}

.xb4, .xb5, .xb6, .xb7 {background:#ccc; border-left:1px solid #fff; border-right:1px solid #fff;}

.xb1 {margin:0 8px; background:#fff;}

.xb2 {margin:0 6px; background:#fff;}

.xb3 {margin:0 4px; background:#fff;}

.xb4 {margin:0 3px; background:#7f7f9c; border-width:0 5px;}

.xb5 {margin:0 2px; background:#7f7f9c; border-width:0 4px;}

.xb6 {margin:0 2px; background:#7f7f9c; border-width:0 3px;}

.xb7 {margin:0 1px; background:#7f7f9c; border-width:0 3px; height:2px;}

.xboxcontent {display:block; background:#7f7f9c; border:3px solid #fff; border-width:0 3px;}

* html .xsnazzy span {width:20px; height:10px; w\idth:0; hei\ght:0;}

For non-IE6 browsers

蜡烛及火焰效果的flash源文件,其实是逐帧动画,也就是火焰的动画是由一帧一帧叠加出来,因此决定了本效果占用了比较大的体积,原因就是因为调用的外部PNG图片挺多的。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值