日期:2014-05-19  浏览次数:20663 次

用frame框架。动态取菜单 target定位不到指定frame??
 
      <li>
       <a href="${basePath }/admin/jsp/category/categoryList.jsp" target="rightFrame">dddd</a>     </li>
        <c:forEach items="${applicationScope.categories}" var="menu">
         <li> <a href="${basePath}${menu.urladdress }" class="nav-top-item no-submenu" target="rightFrame"> ${menu.name} </a> </li>
         <c:if test="${fn:length(menu.childrenList) > 0}">
          <ul>
         <c:forEach items="${menu.childrenList}" var="child">
         <li><a href="${basePath }${chiled.urladdress }" target="rightFrame">${child.name }</a></li>
         </c:forEach>
         </ul>
         </c:if>
        </c:forEach>


循环出来的结果target定位失效。直接写死的可以定位到右边框架。
------最佳解决方案--------------------
怎么个失效法呢?你看下循环出来的连接有什么错误?
------其他解决方案--------------------
引用:
怎么个失效法呢?你看下循环出来的连接有什么错误?


失效就是,你点它没有在右边的框架显示,而是在自己的当前框架显示。

解决了,是因为a链接里不能有class 属性 ,换种方式写样式就好了!