html - 如何使用 CSS 连接两个阶段的圆圈

标签 html css

各位,

我们正在尝试连接不同阶段的两条线路,但似乎 stage2 正在移动到不同的线路。

如何用线连接这两个阶段(圆圈),使它们出现在同一条线上。截至目前,它总是会换行。

代码如下:

.circle {
  width: 10px;
  height: 10px;
  border-radius: 15px 15px 15px 15px;
  padding: 5px;
  background: white;
  border: 1px solid green;
}

.circle-inner {
  width: 10px;
  height: 10px;
  border-radius: 10px 10px 10px 10px;
  background: green;
}
<font face="Times New Roman" size="1">stage1</font>
<span class="circle" style="display:block">
	<span class="circle-inner" style="display:block"></span>
</span>
<hr style="height:1px; margin-top:-10px; border:none; color:#000; background-color:#000;width:80px;margin-left:22px">
<font face="Times New Roman" size="1">stage2</font>
</span>
<span class="circle" style="display:block">
	<span class="circle-inner" style="display:block"></span>
</span>
<hr style="height:1px; margin-top:-11px; border:none; color:#000; background-color:#000;width:80px;margin-left:22px">

最佳答案

像这样?

.circle {
  width: 10px;
  height: 10px;
  border-radius: 15px 15px 15px 15px;
  padding: 5px;
  background: white;
  border: 1px solid green;
}

.circle-inner {
  width: 10px;
  height: 10px;
  border-radius: 10px 10px 10px 10px;
  background: green;
}
<div style="display:inline-block;">
  <font face="Times New Roman" size="1">stage1</font>
  <span class="circle" style="display:block">
	<span class="circle-inner" style="display:block"></span>
  </span>
  <hr style="height:1px; margin-top:-10px; border:none; color:#000; background-color:#000;width:80px;margin-left:22px">
</div><!--
--><div style="display:inline-block;">
  <font face="Times New Roman" size="1">stage2</font>
  <span class="circle" style="display:block">
	<span class="circle-inner" style="display:block"></span>
  </span>
  <hr style="height:1px; margin-top:-11px; border:none; color:#000; background-color:#000;width:80px;margin-left:22px">
</div>

关于html - 如何使用 CSS 连接两个阶段的圆圈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43112800/

相关文章:

javascript - 如何将带有参数的表格从一页传递/生成到另一页

html - Windows Phone 7.5 的 IE9 支持在 HTML5 Canvas 上绘图吗?

html - div 中的文本未垂直对齐

css - 设计师是如何应用这个css类的呢?

html - 图片悬停的奇怪问题

javascript - 如何将一个数组的元素包含在另一个数组中?

图像上的 php gd 文本中断

css - Woocommerce 产品描述全宽?

jquery - 视频结束时隐藏包装 <div>

jquery - 动画重置