思路跟画实体三角形一个道理,只不过多了一个圆角属性

代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>c3扇形</title>
    <style>
        .sector{
            width0;
            height0;
            border-width50px;
            border-style: solid;
            border-color#f00 transparent transparent;
            border-radius50px
        }
    </style>
</head>
<body>
    <div class="sector"></div>
</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2021-04-01
  • 2021-07-11
  • 2022-12-23
  • 2021-04-24
  • 2021-12-26
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-10-01
相关资源
相似解决方案