找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1808|回复: 0

[教程] css3 边框圆角

[复制链接]
发表于 2013-4-7 16:08:36 | 显示全部楼层 |阅读模式 来自 北京市
CSS3圆角(所有的)


1
<strong>#roundCorderC{

[backcolor=rgb(248, 248, 248) !important]
2
    font-family: Arial;

3
    border: 5px solid #dedede;

[backcolor=rgb(248, 248, 248) !important]
4
    -moz-border-radius: 15px;

5
    -webkit-border-radius: 15px;

[backcolor=rgb(248, 248, 248) !important]
6
    padding: 15px 25px;

7
    height: inherit;

[backcolor=rgb(248, 248, 248) !important]
8
    width: 590px;

9
    }</strong>



浏览器支持:
  • Firefox(3.05+…)
  • Google Chrome(1.0.154+…)
  • Google Chrome(2.0.156+…)
  • Internet Explorer(IE7, IE8)
  • Opera 9.6
  • Safari(3.2.1+ windows)
CSS3圆角(个别的)
当然,一个DIV的四个角不需要全部都是圆角,你可以个别的实现圆角。

01
#roundCornerI{

[backcolor=rgb(248, 248, 248) !important]
02
  font-family: Arial;

03
  border: 5px solid #dedede;

[backcolor=rgb(248, 248, 248) !important]
04
  -moz-border-radius-topleft: 15px;

05
  -moz-border-radius-topright: 0px;

[backcolor=rgb(248, 248, 248) !important]
06
  -moz-border-radius-bottomright: 15px;

07
  -moz-border-radius-bottomleft: 0px;

[backcolor=rgb(248, 248, 248) !important]
08
  -webkit-border-top-left-radius: 15px;

09
  -webkit-border-top-right-radius: 0px;

[backcolor=rgb(248, 248, 248) !important]
10
  -webkit-border-bottom-left-radius: 0px;

11
  -webkit-border-bottom-right-radius: 15px;

[backcolor=rgb(248, 248, 248) !important]
12
  padding: 15x 25px;

13
  height: inherit;

[backcolor=rgb(248, 248, 248) !important]
14
  width: 590px;

15
}






发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;

如何回报帮助你解决问题的坛友,好办法就是点击帖子下方的评分按钮给对方加【金币】不会扣除自己的积分,做一个热心并受欢迎的人!

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则 需要先绑定手机号

关闭

站长推荐上一条 /1 下一条

QQ|侵权投诉|广告报价|手机版|小黑屋|西部数码代理|飘仙建站论坛 ( 豫ICP备2022021143号-1 )

GMT+8, 2024-4-28 11:18 , Processed in 0.035525 second(s), 8 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表