<div class="column">
<!-- no模块制作 -->
<div class="no"></div>
</div>
.no{
background: rgba(101, 132, 226, 0.1);
padding: 0.1875rem;
}
column 有个 左右 10px 下 15px 的外边距
.column:nth-child(2){
flex:5;
margin:0 .125rem .1875rem;
}
我们想要的效果如下:

<div class="no">
<div class="no-hd">
<ul>
<li>125811</li>
<li>104563</li>
</ul>
</div>
<div class="no-bd">文字</div>
</div>
.no{
background: rgba(101, 132, 226, 0.1);
padding: 0.1875rem;
.no-hd {
position: relative;
border: 1px solid rgba(25, 186, 139, 0.17);
ul {
display: flex;
li {
flex: 1;
text-align: center;
height: 1rem;
line-height: 1rem;
font-size: 0.875rem;
color: #ffeb7b;
}
}
}
}
结果为:

这个中间的小圆点我们可以在刚开始的时候就去掉
li{
list-style: none;
}
接着这个字体的样式和我们想要的效果也不一样。这时我们需要用到图标字体,首先需要声明字体,我们可以放到最开始的时候
/* 声明字体*/
@font-face {
font-family: electronicFont;
src: url(../font/DS-DIGIT.TTF);
}
接着直接使用在no-hd样式中font-family

no-hd 利用 after 和 before制作2个小角
&::before {
content: "";
position: absolute;
width: 30px;
height: 10px;
border-top: 2px solid #02a6b5;
border-left: 2px solid #02a6b5;
top: 0;
left: 0;
}
&::after {
content: "";
position: absolute;
width: 30px;
height: 10px;
border-bottom: 2px solid #02a6b5;
border-right: 2px solid #02a6b5;
right: 0;
bottom: 0;
}
结果:

中间还有一条小竖线,这个怎么来做呢?
给一个小li加一个伪元素
ul {
display: flex;
li {
position: relative;
flex: 1;
text-align: center;
height: 1rem;
line-height: 1rem;
font-size: 0.875rem;
color: #ffeb7b;
font-family: electronicFont;
&:first-child::after {
content: "";
position: absolute;
height: 50%;
width: 1px;
background: rgba(255, 255, 255, 0.2);
right: 0;
top: 25%;
}
}
}

综上:no-hd布局是加了一个边框,两个小角是给no-hd加一个after,before伪元素,里面再通过flex布局,划分左右两个小li,每个小li高度为80px,小竖线是第一个小li的after伪元素。
<div class="no-bd">
<ul>
<li>前端需求人数</li>
<li>市场供应人数</li>
</ul>
</div>
.no-bd{
ul{
display: flex;
li{
flex: 1;
height: 0.5rem;
line-height: 0.5rem;
text-align: center;
font-size: 0.225rem;
color: rgba(255, 255, 255, 0.7);
padding-top: 0.125rem;
}
}
}
结果为:
