zoukankan      html  css  js  c++  java
  • 1. jsp中<base target='' />标签用法

    用于页面跳转后,页面最后跳转到哪个iframe。例子如下:

    index.jsp :首页

    1. <head>  
    2.   
    3.     <base href="<%=basePath %>"/>  
    4.     <title>系统管理</title>  
    5. </head>  
    6. <body >  
    7.   
    8.   
    9. <div class="left" style="height: 700px;">  
    10.     <div class="menu">  
    11.          <iframe src="manage/menu.jsp" id="menufra" name="menu" frameborder="0" style="margin-top:20px"></iframe>  
    12.     </div>  
    13. </div>  
    14.   
    15. <div style="height:600px;" >  
    16.     <div class="main" align="right">  
    17.         <iframe src="basedata.json?method=findArealist" id="main" name="main" frameborder="1" style="margin-left: 1px;border: 0px solid red; 750px;margin-right: 30px"></iframe>  
    18.     </div>  
    19. </div>  
    20.   
    21. </body>  
    22. </html>  


    menu.jsp:菜单页

      1. <head>  
      2.   <title>菜单</title>  
      3.   <base href="<%=basePath %>">  
      4.   <base target="main" />  
      5. </head>  
      6.   
      7. <body>  
      8. <table width="180"  align="center" border='0' cellspacing='0' cellpadding='0'>  
      9.     <tr>  
      10.         <td width='180' id='mainct' valign="top">  
      11.             <dl class='bitemdl'>  
      12.                 <dt onClick="Show(this)">医院管理</dt>  
      13.                 <dd class='sitem'>  
      14.                     <ul class='sitemu'>  
      15.                         <li><href='basedata.json?method=findArealist' target="main">地区信息</a></li>  
      16.                         <li><href='basedata.json?method=findHospitallist' target="otherId">医院信息</a></li>  
      17.                         <li><href='basedata.json?method=findDeptlist'>科室信息</a></li>  
      18.                     </ul>  
      19.                 </dd>  
      20.             </dl>  
      21.             <dl class='bitemdl'>  
      22.                 <dt onClick="Show(this)">用户管理</dt>  
      23.                 <dd class='sitem'>  
      24.                     <ul class='sitemu'>  
      25.                         <li><href='basedata.json?method=toAddUser'>添加用户</a></li>  
      26.                         <li><href='basedata.json?method=userList'>管理用户</a></li>  
      27.                         <li><href='basedata.json?method=userList&isVisable=0'>已删用户</a></li>  
      28.                     </ul>  
      29.                 </dd>  
      30.             </dl>    
      31.         </td>  
      32.     </tr>  
      33.   
      34. </table>  
      35. </body
  • 相关阅读:
    杭电 Problem
    杭电Problem 5053 the sum of cube 【数学公式】
    杭电 Problem 2089 不要62 【打表】
    杭电 Problem 4548 美素数【打表】
    杭电 Problem 2008 分拆素数和 【打表】
    杭电 Problem 1722 Cake 【gcd】
    杭电 Problem 2187 悼念512汶川大地震遇难同胞——老人是真饿了【贪心】
    杭电Problem 1872 稳定排序
    杭电 Problem 1753 大明A+B
    东北林业大 564 汉诺塔
  • 原文地址:https://www.cnblogs.com/sharpest/p/7285636.html
Copyright © 2011-2022 走看看