html - 使用CSS在彼此内部创建4个圆圈

标签 html css geometry

我正在尝试使用 CSS 将 4 个圆圈(没有背景颜色,只有边框颜色)与最后一个圆圈内的文本放在一起。

示例:http://imgur.com/a/5vUKI

知道如何做到这一点吗?

最佳答案

给你。这应该可以帮助您入门。

.circle {
  border-radius: 50%;
  background: transparent;
  border: 2px solid red;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c2 {
  width: 400px;
  height: 400px;
  border-color: blue;
}

.c3 {
  width: 300px;
  height: 300px;
  border-color: yellow;
}

.c4 {
  width: 200px;
  height: 200px;
}
<div class="circles">

  <div class="circle c1">
    <div class="circle c2">
      <div class="circle c3">
        <div class="circle c4"></div>
      </div>
    </div>
  </div>

</div>

关于html - 使用CSS在彼此内部创建4个圆圈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43368774/

相关文章:

html - 有时无法显示对象

iphone - @font-face 在移动 Webkit 中不工作

html - 如何在不包括图标的菜单中将文本居中?

python - Python 两点中间的垂直线

javascript -::VanillaJS 模板和自定义元素的内容填充

javascript - 错误阻止嵌入式 javascript 运行

javascript - 在移动屏幕上以 HTML 格式获取溢出(放大)图像的可见部分(坐标)

math - 将 3d 共面点列表按顺时针或逆时针排序

java - 从未知绘图中检测圆圈

javascript - 当鼠标悬停在这个形状上时,如何使标注窗口出现?