首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

用frame框架。动态取菜单 target定位不到指定frame?解决办法

2012-12-15 
用frame框架。动态取菜单 target定位不到指定frame??lia href${basePath }/admin/jsp/category/catego

用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 属性 ,换种方式写样式就好了!

热点排行