【发布时间】:2022-02-09 15:27:06
【问题描述】:
我试图在两个公文包图标之间画一条垂直线,理想情况下它的位置不固定,因此它会根据屏幕大小进行调整。我附上了容器的副本以及运行时当前外观的屏幕截图。谢谢!
<div class="container2">
<p style="font-size:64px; color: #555555;text-align:center; font-family: Courier New" >Work Expierence and Education<p>
<div class="row justify-content-center">
<div class="col-md-auto">
<div class="p-2"><p style="font-size:32px; color: #000000;text-align:left; font-family: Courier New">Intern<p>
<p style="font-size:24px; color: #555555;text-align:left; font-family: Courier New">Summer 2018<p></div>
</div>
<div class="col-md-auto">
<br>
<span class="fa-stack" style="vertical-align: middle;">
<i class="far fa-circle fa-stack-2x"></i>
<i class="fas fa-briefcase fa-stack-1x"></i>
</span>
</div>
<div class="col-6">
<p style="font-size:32px; color: #000000;text-align:left; font-family: Courier New">Academy<p>
<p style="font-size:18px; color: #000000;text-align:left; font-family: Courier New"> Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test TestTest Test Test Test Test Test Test Test Test TestTest Test Test Test Test Test Test Test Test Test <p>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-auto">
<div class="p-2"><p style="font-size:32px; color: #000000;text-align:left; font-family: Courier New">Intern 2<p>
<p style="font-size:24px; color: #555555;text-align:left; font-family: Courier New">Summer 2019<p></div>
</div>
<div class="col-md-auto">
<br>
<span class="fa-stack" style="vertical-align: middle;">
<i class="far fa-circle fa-stack-2x"></i>
<i class="fas fa-briefcase fa-stack-1x"></i>
</span>
</div>
<div class="col-6">
<p style="font-size:32px; color: #000000;text-align:left; font-family: Courier New">Academy<p>
<p style="font-size:18px; color: #000000;text-align:left; font-family: Courier New"> Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test TestTest Test Test Test Test Test Test Test Test TestTest Test Test Test Test Test Test Test Test Test <p>
</div>
</div>
</div>
【问题讨论】:
-
你能不能把你的 sn-p 变成一个工作的 - 包括 bootstrap 和 fontawesome。
标签: html css bootstrap-4