如何在另一个div中显示子列表 [英] How to display sub list in another div
本文介绍了如何在另一个div中显示子列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有列表对应的子列表。如果我点击列表应该可以在另一个
Hi,
I have list corresponding sub list.is it possible to do that if i click on list should display corresponding sub list in another
中显示相应的子列表。
如果有人有这样的样品请分享
我怎样才能实现它。请帮助我
< b>我尝试了什么:
i我认为当我点击列表时会将相应的子列表存储在一个数组中并显示在另一个
如果有人有这样的样品请分享
我怎样才能实现它。请帮助我
< b>我尝试了什么:
i我认为当我点击列表时会将相应的子列表存储在一个数组中并显示在另一个
.
if any one have such sample please share
How can i achieve it.please help me
What I have tried:
i am thinking that when i click on list will store corresponding sub list in an array and display in another
if any one have such sample please share
How can i achieve it.please help me
What I have tried:
i am thinking that when i click on list will store corresponding sub list in an array and display in another
中
推荐答案
看看这个:使用HTML&创建下拉菜单CSS [ ^ ]
尝试这样的事情
根据需要修改它
CSS
Try something like this
modify it as per your need
CSS
<style>
.sub-menu {
display: none;
list-style: none;
position: absolute;
left: 10px;
width: 150px;
}
</style>
Javascript / Jquery
Javascript/Jquery
<script>
(function(){
(function () {
这篇关于如何在另一个div中显示子列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文