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;   第一个参数为 水平线,第二个参数为垂直线 ;

利用所学到的,画个椭圆吧。正方形肯定不能画椭圆,要用长方形

最新文章

  1. Linux运维(3年以内)
  2. httpd.conf 禁止运行PHP和html页面
  3. POJ 3678 Katu Puzzle (2-SAT,常规)
  4. leetcode第六题 ZigZag Conversion (java)
  5. HDU 1011 树形背包(DP) Starship Troopers
  6. MapReduce程序开发之流量求和(八)
  7. 「30天自制操作系统」 Stop & 「OS67 」 Start
  8. div、ul、li等无法居中问题,text-align无效 margin auto无效
  9. 分享jquery.cookie.js
  10. Spring 4 MVC example with Maven
  11. SpringBoot集成Redis实现缓存处理(Spring AOP实现)
  12. java基础概念
  13. Scala - 快速学习05 - 数据结构
  14. POI解析Excel代码
  15. selenium键盘操作
  16. PHP安全过滤函数
  17. 关于mysql-connector-java(JDBC驱动)的一些坑
  18. ORA-01403:no data found 解决办法
  19. 在网页中使用SVG
  20. NET Core 拓展方法和中间件集合(支持NET Core2.0+)

热门文章

  1. 5. Bean Validation声明式验证四大级别:字段、属性、容器元素、类
  2. 利用Gitee转接GitHub下载加速 简简单单 - 快快乐乐
  3. MAP;MLE
  4. C#设计模式-模板方法模式(Template Method)
  5. 配置交换机之间直连链路聚合-LACP模式
  6. STM32入门系列-使用C语言封装寄存器
  7. 01 . Go之Gin+Vue开发一个线上外卖应用
  8. mshadow入门指南
  9. HP UNIX 查看 修改IP地址
  10. How to using expression setup BackgroundColor AX2012 SSRS Report[AX2012]