zoukankan      html  css  js  c++  java
  • border-radius圆角边框属性讲解

    语法:

    border-radius:length/persentage;

    1.一个属性值。如border-radius:6px;

    它表示元素四个方向的圆角大小都是6px,即每个圆角的“水平半径”和“垂直半半径”都设置为6px;

    2.四个属性值,分别表示左上角、右上角、右下角、左下角的圆角大小(顺时针方向

    border-radius:10px   20px   30px  40px;

    3.三个属性值,第一个值表示左上角,第二个值表示右上角和左下角(对角),第三个值表示右下角。

    border-radius:10px   30px  60px; 

     

    4.两个属性值,第一个值表示左上角和右下角,第二个值表示右上角和左下角。

    border-radius:20px  40px;

     5.斜杠二组值:第一组值表示水平半径,第二组值表示垂直半径,每组值也可以同时设置1到4个值,规则与上面相同。

    border-radius:100px/40px;

     

     border-radius:60px 60px 60px 60px/100px 100px 60px 60px;

    实际运用

    实心圆

    .circle{
    
      width: 120px;
    
       height: 120px;
    
       background: #EC0465;
    
       border-radius: 100%;
    
    }

    半圆

    .lf-self-circle {
    
       width: 60px;
    
       height: 120px;
    
       background: #EC0465;
    
       border-radius: 60px 0 0 60px;
    
    }

     扇形

    .quarter-botlf-cir {
    
       width: 60px;
    
       height: 60px;
    
       background: #EC0465;
    
       border-radius: 0 0 0 60px;
    
    }

     花瓣

    .flower {
    
       width: 120px;
    
       height: 120px;
    
       background: #EC0465;
    
       border-radius: 60px 60px 0 60px;
    
    }

     胶囊

    .level-capsule {
    
       width: 160px;
    
       height: 100px;
    
       border-radius: 50px;
    
       background: #EC0465;
    
    }

     椭圆

    .ty{
    
       width: 160px;
    
       height: 100px;
    
       background: #EC0465;
    
       border-radius: 80px/50px;
    
    }
  • 相关阅读:
    codeforces #595 div3 题解
    codeforces #593 div2 ABCD 题解
    codeforces #594 div2 ABCD1F
    codeforces gym102040 前四题签到题解
    struts2.5 使用i18n国际化时中文乱码的一种解决方案
    2019 南昌 ICPC网络赛 H The Nth Item (矩阵快速幂/二次剩余+记忆化)
    Cubes UVA10601 POLYA定理
    TODO-LIST
    线性基模板整理
    2019牛客多校训练第三场B.Crazy Binary String(思维+前缀和)
  • 原文地址:https://www.cnblogs.com/vickylinj/p/13451534.html
Copyright © 2011-2022 走看看