扫码关注官方订阅号
我正在尝试使用包含多个点的 CSS 创建一条垂直线。但是,我不太确定该怎么做。
有人可以帮我解决这个问题吗?
我想在这里创建一个像这样的东西。
您可以在此处使用 SVG 图像。
我希望下面的代码能帮助您解决问题。如果您需要更多,您可以使用 垂直向导 进行 Google 搜索并获取如下附加代码:
垂直向导
ul { list-style: none; margin: 0; padding: 0; position: relative; } ul:before { content: ""; display: inline-block; width: 2px; background: red; position: absolute; left: 3px; top: 5px; height: calc(100% - 10px); } ul li { position: relative; padding-left: 15px; margin-bottom: 15px; } ul li:before { content: ""; display: inline-block; width: 8px; height: 8px; background: red; position: absolute; left: 0; top: 5px; border-radius: 10px; }
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
您可以在此处使用 SVG 图像。
我希望下面的代码能帮助您解决问题。如果您需要更多,您可以使用
垂直向导
进行 Google 搜索并获取如下附加代码: