이 글의 내용은 jquery에서 메뉴 확장 및 접기(코드)를 구현하는 방법에 대한 것입니다. 필요한 친구들이 참고할 수 있기를 바랍니다.
jquery 콘텐츠
<script> $(function () { $("dl dt").click(function () { $(this).siblings().toggle().parent().siblings().children("dd").hide(); }); }); </script>
태그 콘텐츠# 🎜🎜#
<dl id="ctl00_menuPassMgr"> <dt><span> <img alt="" src='images/ico03.gif' /> </span> <span> <a href="javascript:">密码管理</a></span> </dt> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span> <a href='/SysManager/ChangePassword.aspx'>修改密码</a></span> </dd> </dl> <dl id="ctl00_menuHourse"> <dt><span> <img alt="" src='images/ico03.gif' /></span> <span><a href="javascript:">宿舍管理</a></span> </dt> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/SchoolHourseManager/SchoolHourseList.aspx'> 学生宿舍查询</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/SchoolHourseManager/SchoolHourseEdit.aspx'> 学生宿舍新增</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/SchoolHourseManager/CheckStudentDormitory.aspx'> 学生宿舍分配</a></span> </dd> </dl> <dl id="ctl00_menuStudent"> <dt><span> <img alt="" src='images/ico03.gif' /></span> <span><a href="javascript:">学生管理</a></span> </dt> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/StudentManager/StudentList.aspx'> 学生信息列表</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/StudentManager/StudentEdit.aspx'> 学生信息新增</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/ClassManager/ClassList.aspx'> 班级信息列表</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/ClassManager/ClassEdit.aspx'> 班级信息新增</a></span> </dd> </dl> <dl id="ctl00_menuTeacher"> <dt><span> <img alt="" src='images/ico03.gif' /></span> <span><a href="javascript:">教师管理</a></span> </dt> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherEdit.aspx'> 教师入职登记</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherList.aspx'> 教师信息查询</a></span> </dd> </dl> <dl id="ctl00_menuReport"> <dt><span> <img alt="" src='images/ico03.gif' /></span> <span><a href="javascript:">缴费及统计报表</a></span> </dt> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherList.aspx'> 学生缴费入口</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherList.aspx'> 学生缴费查询</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherList.aspx'> 收件信息查看</a></span> </dd> <dd> <span> <img alt="" src='images/ico06.gif' /></span> <span><a href='/TeacherManager/TeacherList.aspx'> 发件信息查看</a></span> </dd> </dl>
jQuery 간단하고 아름다운 탐색 menu_html/css_WEB-ITnose#🎜🎜 ## 🎜🎜#
jquery 가장 간단한 속성 menu_jquery
jQuery EasyUI 메뉴 및 버튼 간단한 메뉴 및 링크 버튼 만들기 _jquery
멋지고 실용적인 jQuery/HTML5 메뉴 그래픽 및 텍스트 설명
위 내용은 Jquery에서 메뉴 확장 및 축소를 구현하는 방법(코드)의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!