CSS3 圆角(border-radius)
来源:互联网 发布:win7安装linux 编辑:程序博客网 时间:2024/05/21 14:40
CSS3 圆角(border-radius)
- 前缀
- 例1
- 例2:无边框
- 书写顺序
- 其它
- 支持性
值:半径的长度
前缀
- -moz(例如 -moz-border-radius)用于Firefox
- -webkit(例如:-webkit-border-radius)用于Safari和Chrome。
例1
<div id="round"></div>#round { padding:10px; width:300px; height:50px; border: 5px solid #dedede; -moz-border-radius: 15px; /* Gecko browsers */ -webkit-border-radius: 15px; /* Webkit browsers */ border-radius:15px; /* W3C syntax */}
效果:
例2:无边框
<div id="round"></div> #round { padding:10px; width:300px; height:50px; background:#FC9; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius:15px;}
效果:
书写顺序
/* Gecko browsers */-moz-border-radius: 5px; /* Webkit browsers */-webkit-border-radius: 5px; /* W3C syntax - likely to be standard so use for future proofing */border-radius:10px;
其它
支持上、右、下、左
border-radius:5px 15px 20px 25px;
支持拆分书写
/* Gecko browsers */-moz-border-radius-topleft: 20px;-moz-border-radius-topright: 0;-moz-border-radius-bottomleft: 0;-moz-border-radius-bottomright: 20px; /* Webkit browsers */-webkit-border-top-left-radius: 20px;-webkit-border-top-right-radius: 0;-webkit-border-bottom-left-radius: 0;-webkit-border-bottom-right-radius: 20px; /* W3C syntax */border-top-left-radius: 20px;border-top-right-radius: 0;border-bottom-right-radius: 0;border-bottom-left-radius: 20px;
支持性
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)
- CSS3 圆角(border-radius)详解
- CSS3圆角(border-radius)的用法
- CSS3 圆角(border-radius)详解
- css3的border-radius圆角
- CSS3 经典教程系列:CSS3 圆角(border-radius)详解
- CSS3 经典教程系列:CSS3 圆角(border-radius)详解
- CSS3 经典教程系列:CSS3 圆角(border-radius)详解
- 黑马程序员__JAVA基础__集合(二)
- 修改Ubuntu下的jenkins端口号
- C51与单片机系统多级菜单的模块化设计
- cygwin 生成.so
- 二分法、快速排序
- CSS3 圆角(border-radius)
- 工厂方法模式
- 易错点:C++ switch case中定义变量
- 优化技巧分享:把内存消耗降低至原来的1/20
- Daily-C-Study(20):C语言#pragma预处理
- hdu 4325
- Tiny210 android 2.3 在Ubuntu下编译问题
- 生成函数调用图(转贴+补充)
- 二叉排序树查找