有人能告诉我下面的代码有什么问题吗。。
managerhomepage.html

 <html>
  <head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <frameset row="20%,80%">
        <frame src="managerhomepage.jsp">
        <frame src="signup.html">
    </frameset>
 </body>
</html>

managerhomepage.jsp
 <%@page contentType="text/html" pageEncoding="UTF-8"%>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

  <html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ManagerHomePage</title>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <% String[] name={"Raviteja","Pramod","Aadinarayana","Anusha","Ramireddy","Surendhra","Rajesh","Aruna"};%>
    <center>
            <div id="border"><div id="header">
                <div id="logo-bg">
                    <div class="name">Ayansys</div>
                    <div class="tag">COMPANY SLOGAN</div>
                </div>
           </div>
                <h1>MANAGER'S HOME PAGE</h1>
                Select a SalesPerson from here <select name="salespersons">
                    <option></option>
                   <% for(int i=0;i<name.length;i++){
                        %><option><%=name[i]%></option><%
                   }%>
                </select>
                <input type="button" value="OK"/>
    </center>
</body>
 </html>

注册.html
  <html>
    <head>
    <title>SIGNUP</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="ts_picker.js">
    </script>
     </head>
      <body>
    <center>
            <div id="border"><div id="header">
                <div id="logo-bg">
                    <div class="name">Ayansys</div>
                    <div class="tag">COMPANY SLOGAN</div>
                </div>
            </div>
            <div>
                <h1>SIGNUP FORM</h1>
            <form action="managerhomepage.html">
                <table>
                    <tr><td>FIRST NAME</td><td><input type="text" name="fname" size="50"/></td></tr>
                    <tr><td>LAST NAME</td><td><input type="text" name="sname" size="50"/></td></tr>
                    <tr><td>DESIRED LOGIN NAME</td><td><input type="text" name="login" size="50"/></td></tr>
                    <tr><td>PASSWORD</td><td><input type="password" name="pwd" size="50"/></td></tr>
                    <tr><td>RE-TYPE PASSWORD</td><td><input type="password" name="repwd" size="50"/></td></tr>
                    <tr><td>GENDER</td><td><input type="radio" name="gender" value="Male"/>Male<input type="radio" name="gender" value="FeMale"/>Female</td></tr>
                    <tr><td>DATE OF BIRTH</td><td><form name="tstest">
                                                    <input type="text" readonly size="47" name="timestamp" value="">
                                                    <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp"></a>
                                                    </form></td></tr>
                    <tr><td>MAIL ID</td><td><input type="text" name="mail1" size="30">@<input type="text" name="mail2" size="11"></td></tr>
                    <tr><td>EMPLOYEE ID</td><td><input type="text" name="eid" size="50"></td></tr>
                    <tr><td>TYPE OF USER</td><td><input type="radio" name="manager"/>Manager<input type="radio" name="seniormanager"/>SeniorManager</td></td></tr>
                    <tr><td>ADDRESS</td><td><textarea rows="9" cols="40"></textarea></td></tr>
                    <tr><td>MOBILE NUMBER</td><td><input type="text" size="50" name="mobile"></td></tr>
                    <tr><td></td><td><input type="SUBMIT" name="submit" value="SUBMIT">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="cancel" value="CANCEL"/></td></tr>
                </table>
            </div>
            </form>
                </br><div>Designed by:<a href="#">STUDY CENTER</a></div>
          </div>
    </center>
</body>

最佳答案

使用frameset而不是body,而不是在其内部。

关于html - 具有frameset标签的html页面不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7753165/

10-13 00:43