CSS3 圆角(border-radius)
来源:互联网 发布:伤感网络女歌手有哪些 编辑:程序博客网 时间:2024/05/18 00:56
值:半径的长度
前缀:
-moz(例如 -moz-border-radius)用于Firefox
-webkit(例如:-webkit-border-radius)用于Safari和Chrome。
例1.
#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 :无边框
#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;
支持性:
√Google Chrome(1.0.154+…)
√
Google Chrome(2.0.156+…)
√
Safari(3.2.1+ windows)
√
Internet Explorer(IE7, IE8)
×Opera 9.6
×
0 0
- 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)详解
- mysql实现多行查询结果合并成一行
- Redis sentinel 主从自动切换配置
- shell脚本编程:将文件中指定行的内容进行替换
- maven配置settings.xml
- 解决错误 Target runtime com.genuitec.runtime.generic.jee60 is not defined.
- CSS3 圆角(border-radius)
- X: user not authorized to run the X server, aborting
- iOS 开发之tag,视图图层间的关系
- I Love You Too 2816 (字符串 好题)
- [转][Android]Android OTA 升级
- 我的linux学习笔记
- Graph Cuts on the GPU解析
- 安卓基本控件之CheckBox
- 1632: [Usaco2007 Feb]Lilypad Pond