用::之后创建点并使其响应迅速
我必须编码该设计。我不知道该如何处理这些点。 我想知道是否有更好的编码方法...它也必须响应迅速(如果屏幕较小,我希望这些点在Div.box下方)。链接到我的codepen: https://codepen.io/confuze/confuze/pen/pen/pen/joygqko
.box:not(:last-child)::after {
content: "..............";
color:#8C4AF2;
font-size: 2rem;
position: absolute;
left: calc(100% + 10rem);
top: 50%;
transform: translate(-50%, -70%);
}
href =“ https://i.sstatic.net/eyzvj.png” rel =“ nofollow noreferrer”>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将不用使用伪元素,而是在主divs之间使用其他divs,该divs具有点缀
border> border-top
,零高度
,位于主的垂直中间divs并被允许生长和收缩(除了“主divs”,其宽度应具有固定宽度),包括最小和最大宽度。为了响应能力,我将使用一个媒体查询,其中
flex方向
is列
而不是默认row> row
,其中内部的divs有一个虚线边界左
而不是border-top
,零width
和一个灵活的高度,包括min -height
和Max-Height
。在评论后添加:
Instead of using pseudo-elements, I would use additional divs between the main divs which have a dotted
border-top
, zeroheight
, are positioned at the vertical middle of the main divs and are allowed to grow and shrink (other than the "main divs", which should have a fixed width), including min- and max-width.For responsiveness, I'd use a media query where below a certain width the
flex-direction
iscolumn
instead of the defaultrow
, and where the in-between divs have a dottedborder-left
instead ofborder-top
, zerowidth
and a flexible height including amin-height
andmax-height
.Added after comment:
为什么不尝试简单的@Media查询?刚刚修改了您的codepen 在这里。
Why not try with a simple @media query? Just modified your codepen a bit here.