首页 新闻 搜索 专区 学院

点击一级菜单弹不出二级菜单呢

0
[已解决问题] 解决于 2017-11-30 21:17
  1 <body>
  2   <table border="0" cellspacing="0" cellpadding="0" class="leftMenu">
  3 
  4         <tr onclick="showobj(0)">
  5             <td><img src="../../images/lefticon-Stat.gif" width="26"
  6                 height="26" border="0" align="absmiddle" /><a href="../main.jsp"
  7                 target="mainFrame">出库管理</a></td>
  8         </tr>
  9         <tr id="list" style="display:none;">
 10             <td><table width="100%" border="0" cellpadding="0"
 11                     cellspacing="0" class="leftMenu2">
 12                     <tr>
 13                         <td align="left"><a
 14                             href="./storage001/student/query_package.jsp" target='mainFrame'
 15                             class="menu" onclick='tdClick(0)'>学生领书</a></td>
 16                     </tr>
 17                     <tr>
 18                         <td align="left"><a
 19                             href="./storage001/student/edit_package.jsp" target='mainFrame'
 20                             class="menu" onclick='tdClick(1)'>编辑套书</a></td>
 21                     </tr>
 22                     <tr>
 23                         <td align="left"><a href="./storage001/teacher/book_query.jsp"
 24                             target='mainFrame' class="menu" onclick='tdClick(2)'>教师领书</a></td>
 25                     </tr>
 26                     <tr>
 27                         <td align="left"><a href="./storage001/station/book_query.jsp"
 28                             target='mainFrame' class="menu" onclick='tdClick(2)'>函授站领书</a></td>
 29                     </tr>
 30                     <tr>
 31                         <td align="left"><a href="./storage001/other/book_query.jsp"
 32                             target='mainFrame' class="menu" onclick='tdClick(3)'>其他领书</a></td>
 33                     </tr>
 34 
 35                     <tr>
 36                         <td align="left"><a
 37                             href="./storage001/student/deliver_query.jsp" target='mainFrame'
 38                             class="menu" onclick='tdClick(4)'>学生领书查询</a></td>
 39                     </tr>
 40                     <tr>
 41                         <td align="left"><a
 42                             href="./storage001/teacher/deliver_query.jsp" target='mainFrame'
 43                             class="menu" onclick='tdClick(5)'>教师领书查询</a></td>
 44                     </tr>
 45                     <tr>
 46                         <td align="left"><a
 47                             href="./storage001/station/deliver_query.jsp" target='mainFrame'
 48                             class="menu" onclick='tdClick(6)'>函授站领书查询</a></td>
 49                     </tr>
 50                     <tr>
 51                         <td align="left"><a href="./storage001/other/deliver_query.jsp"
 52                             target='mainFrame' class="menu" onclick='tdClick(7)'>其他领书查询</a></td>
 53                     </tr>
 54                     <tr>
 55                         <td align="left"><a href="./storage001/deliver_query.jsp"
 56                             target='mainFrame' class="menu" onclick='tdClick(8)'>出库总计查询</a></td>
 57                     </tr>
 58                 </table></td>
 59         </tr>
 60         <tr onclick="showobj(1)">
 61             <td><img src="../../images/yuebao.gif" width="24" height="24"
 62                 border="0" align="absmiddle" /><a href="./storage002/receive.jsp"
 63                 target="mainFrame">入库管理</a></td>
 64         </tr>
 65         <tr id="list" style="display:none;">
 66             <td><table width="100%" border="0" cellpadding="0"
 67                     cellspacing="0" class="leftMenu2">
 68                     <tr>
 69                         <td align="left"><a href="./storage002/receive.jsp"
 70                             target='mainFrame' class="menu" onclick='tdClick(0)'>教材入库</a></td>
 71                     </tr>
 72                     <tr>
 73                         <td align="left"><a href="./storage002/receive_query.jsp"
 74                             target='mainFrame' class="menu" onclick='tdClick(1)'>入库查询</a></td>
 75                     </tr>
 76                 </table></td>
 77         </tr>
 78 
 79         <tr onclick="showobj(2)">
 80             <td><img src="../../images/lefticon-Stat2.gif" width="26"
 81                 height="26" border="0" align="absmiddle" /><a
 82                 href="./storage003/stockpile.jsp" target="mainFrame">库存查询</a></td>
 83         </tr>
 84         <tr id="list" style="display:none;">
 85             <td><table width="100%" border="0" cellpadding="0"
 86                     cellspacing="0" class="leftMenu2">
 87                     <tr>
 88                         <td align="left"><a href="./storage003/stockpile.jsp"
 89                             target='mainFrame' class="menu" onclick='tdClick(0)'>库存查询</a></td>
 90                         <tr>
 91                 </table></td>
 92         </tr>
 93 
 94         <tr onclick="showobj(3)">
 95             <td><img src="../../images/lefticon-Stat2.gif" width="26"
 96                 height="26" border="0" align="absmiddle" /><a
 97                 href="./storage003/stockpile.jsp" target="mainFrame">教材盘点</a></td>
 98         </tr>
 99         <tr id="list" style="display: none;">
100             <td><table width="100%" border="0" cellpadding="0"
101                     cellspacing="0" class="leftMenu2">
102                     <tr>
103                         <td align="left"><a href="./storage003/stockpile.jsp"
104                             target='mainFrame' class="menu" onclick='tdClick(0)'>在库量查询</a></td>
105                         <tr>
106                             <tr>
107                                 <td align="left"><a href="./storage004/pandian.jsp"
108                                     target='mainFrame' class="menu" onclick='tdClick(1)'>盘点调整</a></td>
109                             </tr>
110 
111                             <tr>
112                                 <td align="left"><a href="./storage004/pandian_query.jsp"
113                                     target='mainFrame' class="menu" onclick='tdClick(2)'>盘点纪录</a></td>
114                             </tr>
115                 </table></td>
116         </tr>
117 
118         <tr onclick="showobj(4)">
119             <td><img src="../../images/lefticon-Stat2.gif" width="26"
120                 height="26" border="0" align="absmiddle" /><a
121                 href="./storage005/storage_move_query.jsp" target="mainFrame">教材移库</a></td>
122         </tr>
123         <tr id="list" style="display: none;">
124             <td><table width="100%" border="0" cellpadding="0"
125                     cellspacing="0" class="leftMenu2">
126                     <tr>
127                         <td align="left"><a href="./storage005/storage_move_query.jsp"
128                             target='mainFrame' class="menu" onclick='tdClick(0)'>教材移库</a></td>
129                         <tr>
130                 </table></td>
131         </tr>
132 
133         <tr onclick="showobj(5)">
134             <td><img src="../../images/lefticon-Stat2.gif" width="26"
135                 height="26" border="0" align="absmiddle" /><a href="../main.jsp"
136                 target="mainFrame">货架管理</a></td>
137         </tr>
138         <tr id="list" style="display: none;">
139             <td><table width="100%" border="0" cellpadding="0"
140                     cellspacing="0" class="leftMenu2">
141                     <tr>
142                         <td align="left"><a href="./storage006/shelf_add.jsp"
143                             target='mainFrame' class="menu" onclick='tdClick(0)'>货架添加</a></td>
144                         <tr>
145                             <tr>
146                                 <td align="left"><a href="./storage006/shelf_list.jsp"
147                                     target='mainFrame' class="menu" onclick='tdClick(1)'>货架查询</a></td>
148                             </tr>
149                 </table></td>
150         </tr>
151     </table>
152 </body>
待-续的主页 待-续 | 初学一级 | 园豆:193
提问于:2017-11-30 18:31
< >
分享
最佳答案
0

你的第九行代码 style="display:none;" 把二级菜单的样式设置错了,取消这段代码就可以了,后面的二级菜单问题一致。

奖励园豆:5
黑白猫123 | 初学一级 |园豆:-66 | 2017-11-30 21:07

谢谢你     问题解决了  代码没错 浏览器的问题

待-续 | 园豆:193 (初学一级) | 2017-11-30 21:16

@待-续: 可能因为我用的是chorme浏览器,但我实验时,也必须删除这一句代码,二级菜单才显现出来

还没实验其他浏览器

黑白猫123 | 园豆:-66 (初学一级) | 2017-11-30 23:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册