这是那张页面的代码,,不好看的话,你们可以复制到IDE里面看就行了。就是做分页的时候,在最下面按“下一页”的旁边做了一个输入框,供用户输入直接的页码,但是那个输入框变形了,没对准,知道的朋友忙看下,谢谢了!
<%@ page language="java" pageEncoding="GBK"%>
<%@ page import="java.util.*"%>
<%@page import="com.jinluopan.bean.SupplierBean;"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>金罗盘-荐股机构名称修改</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/css.css"> </head>
<body>
<logic:present name="auditsupplier">
<logic:empty name="auditsupplier">
<DIV id=Layer1 align=center>
<TABLE cellSpacing=0 cellPadding=0 width="20%" border=0>
<TBODY>
<TR>
<TD><IMG height=36 src="images/wait_top.gif" width=422></TD></TR>
<TR>
<TD background=images/wait_bg.gif height=170>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=60> </TD></TR>
<TR>
<TD width="47%">
<DIV class=data align=center></DIV></TD>
<TD width="53%"><SPAN class=data><FONT
color=red>
对不起,由于系统正在升级!对你带来的不便敬请谅解!</FONT></SPAN></TD></TR>
<TR>
<TD colSpan=2 height=10></TD></TR>
<TR>
<TD> </TD>
<TD>
<P> <A
href="#"><IMG
height=24 src="images/false.gif" width=58
border=0></A></P></TD></TR>
<TR>
<TD colSpan=2> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=25 src="images/wait_foot.gif" width=422></TD></TR></TBODY></TABLE></DIV>
</logic:empty>
<logic:notEmpty name="auditsupplier">
<%ArrayList<SupplierBean> list=(ArrayList<SupplierBean>)request.getAttribute("auditsupplier"); %>
<table align="center">
<tr>
<td align="center">ID</td>
<td align="center">荐股人</td>
<td align="center">荐股机构</td>
<td align="center">修改/删除</td>
</tr>
<%
for(SupplierBean auditbean:list){
%>
<tr>
<td align="center"><%=auditbean.getId() %></td>
<td align="center"><%if(auditbean.getName()==null){out.print("-");}else{out.print(auditbean.getName());} %></td>
<td align="center"><%if(auditbean.getOrgname()==null){out.print("-");}else{out.print(auditbean.getOrgname());}%></td>
<td align="center"><a href="amendsupplier.jsp?suppid=<%=auditbean.getId()%>&suppname=<%=auditbean.getName() %>&supporgname=<%=auditbean.getOrgname()%>"><font color="red" size="2">[修改]</font></a><a href="deleteSupplier.do?suppid=<%=auditbean.getId()%>"><font color="red" size="2">[删除]</font></a></td>
</tr>
<%} %>
</table>
<logic:present name="page">
<table align="center">
<tr>
<td align="center"><html:link page="/auditsupplier.do?action=firstPage">首页</html:link></td>
<td align="center"><logic:equal name="page" property="hasPreviousPage" value="true"><html:link page="/auditsupplier.do?action=previousPage">上一页</html:link></logic:equal></td>
<td align="center"><logic:equal name="page" property="hasNextPage" value="true"><html:link page="/auditsupplier.do?action=nextPage">下一页</html:link></logic:equal></td>
<td align="center"> <html:link page="/auditsupplier.do?action=lastPage">末页</html:link></td>
<td align="center">总共<bean:write name="page" property="totalRows"/>行</td>
<td align="center">当前第<bean:write name="page" property="totalPages"/>/<bean:write name="page" property="currentPage"/>页</td>
<td align="center"> <form action="auditsupplier.do?action=goto" method="post">跳至<input type="text" name="pages" size="5" maxlength="5"/><input type="submit" value="goto"/></form></td>
</tr>
</table>
</logic:present>
</logic:notEmpty>
</logic:present>
<logic:notPresent name="auditsupplier">
</logic:notPresent>
</body>
</html:html>
<%@ page language="java" pageEncoding="GBK"%>
<%@ page import="java.util.*"%>
<%@page import="com.jinluopan.bean.SupplierBean;"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<title>金罗盘-荐股机构名称修改</title> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/css.css"> </head>
<body>
<logic:present name="auditsupplier">
<logic:empty name="auditsupplier">
<DIV id=Layer1 align=center>
<TABLE cellSpacing=0 cellPadding=0 width="20%" border=0>
<TBODY>
<TR>
<TD><IMG height=36 src="images/wait_top.gif" width=422></TD></TR>
<TR>
<TD background=images/wait_bg.gif height=170>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=2 height=60> </TD></TR>
<TR>
<TD width="47%">
<DIV class=data align=center></DIV></TD>
<TD width="53%"><SPAN class=data><FONT
color=red>
对不起,由于系统正在升级!对你带来的不便敬请谅解!</FONT></SPAN></TD></TR>
<TR>
<TD colSpan=2 height=10></TD></TR>
<TR>
<TD> </TD>
<TD>
<P> <A
href="#"><IMG
height=24 src="images/false.gif" width=58
border=0></A></P></TD></TR>
<TR>
<TD colSpan=2> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=25 src="images/wait_foot.gif" width=422></TD></TR></TBODY></TABLE></DIV>
</logic:empty>
<logic:notEmpty name="auditsupplier">
<%ArrayList<SupplierBean> list=(ArrayList<SupplierBean>)request.getAttribute("auditsupplier"); %>
<table align="center">
<tr>
<td align="center">ID</td>
<td align="center">荐股人</td>
<td align="center">荐股机构</td>
<td align="center">修改/删除</td>
</tr>
<%
for(SupplierBean auditbean:list){
%>
<tr>
<td align="center"><%=auditbean.getId() %></td>
<td align="center"><%if(auditbean.getName()==null){out.print("-");}else{out.print(auditbean.getName());} %></td>
<td align="center"><%if(auditbean.getOrgname()==null){out.print("-");}else{out.print(auditbean.getOrgname());}%></td>
<td align="center"><a href="amendsupplier.jsp?suppid=<%=auditbean.getId()%>&suppname=<%=auditbean.getName() %>&supporgname=<%=auditbean.getOrgname()%>"><font color="red" size="2">[修改]</font></a><a href="deleteSupplier.do?suppid=<%=auditbean.getId()%>"><font color="red" size="2">[删除]</font></a></td>
</tr>
<%} %>
</table>
<logic:present name="page">
<table align="center">
<tr>
<td align="center"><html:link page="/auditsupplier.do?action=firstPage">首页</html:link></td>
<td align="center"><logic:equal name="page" property="hasPreviousPage" value="true"><html:link page="/auditsupplier.do?action=previousPage">上一页</html:link></logic:equal></td>
<td align="center"><logic:equal name="page" property="hasNextPage" value="true"><html:link page="/auditsupplier.do?action=nextPage">下一页</html:link></logic:equal></td>
<td align="center"> <html:link page="/auditsupplier.do?action=lastPage">末页</html:link></td>
<td align="center">总共<bean:write name="page" property="totalRows"/>行</td>
<td align="center">当前第<bean:write name="page" property="totalPages"/>/<bean:write name="page" property="currentPage"/>页</td>
<td align="center"> <form action="auditsupplier.do?action=goto" method="post">跳至<input type="text" name="pages" size="5" maxlength="5"/><input type="submit" value="goto"/></form></td>
</tr>
</table>
</logic:present>
</logic:notEmpty>
</logic:present>
<logic:notPresent name="auditsupplier">
</logic:notPresent>
</body>
</html:html>
不要放到td里