边界圆角

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>边界圆角</title>
    <style>
        .box {
            width: 300px;
            height: 300px;
            background-color: orangered;
        }
        .box {
            /*固定值 | 百分比*/
            /*border-radius: 10%;*/

            /*左上为第一个角,顺时针编号*/
            /*border-radius: 10px 20px 30px 40px;*/

            /*不足找对角*/
            /*border-radius: 10px 50px 100px;*/
            /*border-radius: 10px 50px;*/

            /*横纵分离,先横后纵*/
            /*border-radius: 50px / 50%;*/
            /*border-radius: 50px 100px / 50%;*/

            border-radius: 60%;
        }
    </style>
    <style>
        .b {
            width: 300px;
            height: 150px;
            background-color: orangered;
            border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="b"></div>
</body>
</html>

相关文章:

  • 2021-12-02
  • 2022-01-30
  • 2021-11-26
  • 2022-12-23
  • 2022-02-10
  • 2021-12-20
  • 2021-09-05
猜你喜欢
  • 2021-10-04
  • 2021-11-09
  • 2022-12-23
  • 2021-10-23
  • 2021-12-14
  • 2021-11-20
  • 2021-04-14
相关资源
相似解决方案