像树一样呈现嵌套列表 [英] Render nested list like a tree

查看:141
本文介绍了像树一样呈现嵌套列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在最后一个元素处停止垂直边框?



它可以是CSS3 /现代浏览器兼容的。但需要处理各种背景(即透明)。




How would I make the vertical border in this stop at the last element?

It can be CSS3/modern browser compatible only. But needs to work on various backgrounds (i.e. be transparent).

http://jsfiddle.net/ShgD6/

From this:

To this:

解决方案

I solved this via modifications to the css in this fiddle:

http://jsfiddle.net/YYdwc/2/

这篇关于像树一样呈现嵌套列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆