有没有将`< li>元素分组的方法? [英] Is there a way to group `<li>` elements?
本文介绍了有没有将`< li>元素分组的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在列表中分成几个< li>
元素,这有可能吗?
(我知道给每个元素赋予不同的类名称/分成不同的< ul>
)
I need to divide into groups several <li>
elements in a list, is it possible?
(I know I an give each element different class names/separate into different <ul>
)
推荐答案
您是否考虑嵌套UL?我相信这会证实:
Have you considered nested UL's? I believe this would validate:
<UL>
<LI>
<UL>
<LI></LI>
<LI></LI>
<LI></LI>
</UL>
</LI>
<LI>
<UL>
<LI></LI>
<LI></LI>
<LI></LI>
<LI></LI>
<LI></LI>
</UL>
</LI>
</UL>
您的CSS技巧是我的第一个猜测;太糟糕了,你不能使用它。
Your CSS trick was my first guess; too bad you can't use that.
这篇关于有没有将`< li>元素分组的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文