为了账号安全,请及时绑定邮箱和手机立即绑定

css3 怎么画这个拱形图

css3 怎么画这个拱形图

qq_花开花谢_0 2018-08-27 10:05:30
查看完整描述

1 回答

?
泛舟湖上清波郎朗

TA贡献1818条经验 获得超3个赞

<!DOCTYPE html>

<html>

<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>Document</title>

  <style>

    body {

      padding: 100px;

    }

    .box {

      width: 300px;

      height: 200px;

      position: relative;

      overflow: hidden;

    }

    .box .c1 {

      width: 500px;

      height: 500px;

      background: #0f0;

      border-radius: 50%;

      left: -100px;

      top: 0;

      position: absolute;

    }

    .box .c2 {

      width: 1500px;

      height: 1500px;

      background: #fff;

      border-radius: 50%;

      left: -600px;

      top: 80%;

      position: absolute;

    }

  </style>

</head>

<body>

  <div class="box">

    <div class="c1"></div>

    <div class="c2"></div>

  </div>

</body>

</html>

css3不熟悉,好歹效果有点像,哈哈

查看完整回答
反对 回复 2018-09-02
  • 1 回答
  • 0 关注
  • 702 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信