日期:2014-05-20 浏览次数:20707 次
<ul><li>1</li> <li><ul> <li>11</li> <li>12</li> <li>13</li> <li>14</li> </ul> </li> <li>2</li> <li><ul> <li>21</li> <li>22</li> <li>23</li> <li>24</li> </ul> </li> <li>3</li> <li><ul> <li>31</li> <li>32</li> <li>33</li> <li>34</li> </ul> </li> </ul>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <script> function expand(node){ var node=document.getElementById(node); if(node.style.display=="block") node.style.display="none"; else node.style.display="block" } </script> </HEAD> <BODY> <ul><li ondblclick ="expand('first')" style="display: block; cursor : hand; color: red;">1</li> <li id="first"><ul> <li>11</li> <li>12</li> <li>13</li> <li>14</li> </ul> </li> <li ondblclick ="expand('second')" style="display: block; cursor: hand; color: red;">2</li> <li id="second"><ul> <li>21</li> <li>22</li> <li>23</li> <li>24</li> </ul> </li> <li ondblclick ="expand('third')" style="display: block; cursor: hand; color: red;">3</li> <li id="third"><ul> <li>31</li> <li>32</li> <li>33</li> <li>34</li> </ul> </li> </ul> </BODY> </HTML>
------解决方案--------------------
用个迭代标签来做啊 http://blog.csdn.net/carefree31441
------解决方案--------------------
不懂帮顶
------解决方案--------------------
我也是同样的问题,up