css3系列之详解border-radius
border-radius
border-radius 几种写法:
1.border-radius: 50%;
以正方形为例子, 这样写就是设置 4个角 为50%。
2.border-radius: 50% 50%;
这样是设置, 左上角 和 右下角 为50%。 右上角 和 左下角为50%
3.border-radius: 10px 20px 30px 40px / 10px 20px 30px 40px;
这四个值代表的位置是 左上 右上 右下 左下 / 左上 右上 右下 左下
以下全部border-radius-top-left 的属性都写错了,是我本人不注意,抱歉 正确写法 border-top-right-radius 。
4.border-radius-top-left: 10px; == border-radius-top-left: 10px 10px; 左上
border-radius-top-right: 10px; == border-radius-top-right: 10px 10px; 右上
border-radius-bottom-right: 10px; == border-radius-bottom-right: 10px 10px; 右下
border-radius-bottom-left: 10px; == border-radius-bottom-left: 10px 10px; 左下
这些值,为什么这么设置的,请看下面讲解:
接下来来看看,圆是怎么实现的。(哈哈哈,灵魂画手)
所以说,需要8个值来设置, 只是平常我们把它缩写了。
border-radius-top-left: 10px 10px; 第一个参数为 水平线,第二个参数为垂直线 ;
利用所学到的,画个椭圆吧。正方形肯定不能画椭圆,要用长方形
最新文章
- Linux运维(3年以内)
- httpd.conf 禁止运行PHP和html页面
- POJ 3678 Katu Puzzle (2-SAT,常规)
- leetcode第六题 ZigZag Conversion (java)
- HDU 1011 树形背包(DP) Starship Troopers
- MapReduce程序开发之流量求和(八)
- 「30天自制操作系统」 Stop &; 「OS67 」 Start
- div、ul、li等无法居中问题,text-align无效 margin auto无效
- 分享jquery.cookie.js
- Spring 4 MVC example with Maven
- SpringBoot集成Redis实现缓存处理(Spring AOP实现)
- java基础概念
- Scala - 快速学习05 - 数据结构
- POI解析Excel代码
- selenium键盘操作
- PHP安全过滤函数
- 关于mysql-connector-java(JDBC驱动)的一些坑
- ORA-01403:no data found 解决办法
- 在网页中使用SVG
- NET Core 拓展方法和中间件集合(支持NET Core2.0+)
热门文章
- 5. Bean Validation声明式验证四大级别:字段、属性、容器元素、类
- 利用Gitee转接GitHub下载加速 简简单单 - 快快乐乐
- MAP;MLE
- C#设计模式-模板方法模式(Template Method)
- 配置交换机之间直连链路聚合-LACP模式
- STM32入门系列-使用C语言封装寄存器
- 01 . Go之Gin+Vue开发一个线上外卖应用
- mshadow入门指南
- HP UNIX 查看 修改IP地址
- How to using expression setup BackgroundColor AX2012 SSRS Report[AX2012]