<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
在 Bootstrap 'Agency' 模板中找到 here ,在关于 部分,有一条垂直线连接所有圆圈图像。我一直在寻找,但是我找不到产生这种影响的样式规则或 html 元素。
谁能告诉我这是做什么的,这样我就可以修改它(例如行长度)?
最佳答案
它是一个 ul
元素(具有类 timeline
),样式如下:
.timeline:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 40px;
width: 2px;
margin-left: -1.5px;
background-color: #f1f1f1;
}
此外,正如@Vucko 所指出的:
@media (min-width: 768px)
.timeline:before {
left: 50%;
}
时间轴中的每个点都是一个li
(右侧的li
只是被赋予了不同的类timeline-inverted
)。
好问题。
关于html - 什么 CSS 属性/HTML 元素提供了这种垂直线效果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30306673/