1009210601_edit.jsp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <div class="header-nav">
  2. <ul class="wrap">
  3. <c:forEach items="${navList}" var="item">
  4. <li>
  5. <c:if test="${item.existChildren == '0'}">
  6. <a href="${item.href}" target="${item.target}">
  7. ${item.name}
  8. </a>
  9. </c:if>
  10. <c:if test="${item.existChildren == '1'}">
  11. <a href="${item.href}" target="${item.target}">
  12. ${item.name}
  13. <span>></span>
  14. </a>
  15. <ul class="nav-secondLevel">
  16. <c:forEach items="${item.children}" var="item2">
  17. <li>
  18. <c:if test="${item2.existChildren == '0'}">
  19. <a href="${item2.href}" target="${item2.target}">
  20. ${item2.name}
  21. </a>
  22. </c:if>
  23. <c:if test="${item2.existChildren == '1'}">
  24. <a href="${item2.href}" target="${item2.target}">
  25. ${item2.name}
  26. <span>></span>
  27. </a>
  28. <ul class="nav-threeLevel">
  29. <c:forEach items="${item2.children}" var="item3">
  30. <li>
  31. <a href="${item3.href}" target="${item3.target}">
  32. ${item3.name}
  33. </a>
  34. </li>
  35. </c:forEach>
  36. </ul>
  37. </c:if>
  38. </li>
  39. </c:forEach>
  40. </ul>
  41. </c:if>
  42. </li>
  43. </c:forEach>
  44. </ul>
  45. </div>
  46. <!-- 移动端导航,跟上面的导航一模一样,最外层的类名不一样 -->
  47. <div class="mobile-header-nav">
  48. <ul class="wrap">
  49. <c:forEach items="${navList}" var="item">
  50. <li>
  51. <c:if test="${item.existChildren == '0'}">
  52. <a href="${item.href}" target="${item.target}">
  53. ${item.name}
  54. </a>
  55. </c:if>
  56. <c:if test="${item.existChildren == '1'}">
  57. <a href="${item.href}" target="${item.target}">
  58. ${item.name}
  59. <span>></span>
  60. </a>
  61. <ul class="nav-secondLevel">
  62. <c:forEach items="${item.children}" var="item2">
  63. <li>
  64. <c:if test="${item2.existChildren == '0'}">
  65. <a href="${item2.href}" target="${item2.target}">
  66. ${item2.name}
  67. </a>
  68. </c:if>
  69. <c:if test="${item2.existChildren == '1'}">
  70. <a href="${item2.href}" target="${item2.target}">
  71. ${item2.name}
  72. <span>></span>
  73. </a>
  74. <ul class="nav-threeLevel">
  75. <c:forEach items="${item2.children}" var="item3">
  76. <li>
  77. <a href="${item3.href}" target="${item3.target}">
  78. ${item3.name}
  79. </a>
  80. </li>
  81. </c:forEach>
  82. </ul>
  83. </c:if>
  84. </li>
  85. </c:forEach>
  86. </ul>
  87. </c:if>
  88. </li>
  89. </c:forEach>
  90. </ul>
  91. </div>