我的表格边框显示不出来

lc_ren 2010-04-14 06:39:53
我现在不能转到视图去修改
请高手看看我的代码 能否帮忙把表格边框显示出来
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<style>
TD {border-top:1px ;border-left:1px ;border-right:1px ;border-bottom:1px;}




#formwrapper {
width:190px;
margin:15px auto;
padding:20px;
text-align:left;
border:1px #1E7ACE solid;
}
</style>
</head>
<body style="margin:auto;width=100%">
<%
String pk_tybz = (String)request.getAttribute("pk_tybz");
String pk_busiType = (String)request.getAttribute("pk_busiType");
String vbillno = (String)request.getAttribute("vbillno");
String doperatordate =(String)request.getAttribute("doperatordate");
String tbtype = (String)request.getAttribute("tbtype");
String pk_deptdoc = (String)request.getAttribute("pk_deptdoc");
String voperatorid = (String)request.getAttribute("voperatorid");
String pk_tybz_pay = (String)request.getAttribute("pk_tybz_pay");
Double bcfkje = (Double)request.getAttribute("bcfkje");
String pk_cubasdoc = (String)request.getAttribute("pk_cubasdoc");
String checkman = (String)request.getAttribute("checkman");
%>
<div id="formwrapper">
<center><a href="<%=request.getContextPath()%>/queryDj1.do?method=shenPi&pk_tybz=<bean:write name="pk_tybz" filter="false"/>&vbillno=<bean:write name="vbillno" filter="false"/>&nowRowNo=<bean:write name="nowRowNo" filter="false"/>&checkman=<bean:write name="checkman" filter="false"/>">审批</a>   <a href="<%=request.getContextPath()%>/queryDj1.do?method=queryDj">返回</a>   <a href="<%=request.getContextPath()%>/sjkj/admin.jsp">退出</a></center>
<%--审批 返回 退出 --%>

<center><h4>单据业务类型:<bean:write name="pk_busiType" filter="false"/></h4></center><%--字段名:单据业务类型 --%>

<table >
<tr>
<td width="25%">报账单号</td> <%--字段名:报账单号 --%>
<td width="75%"><bean:write name="vbillno" filter="false"/></td>
</tr>
<tr>
<td width="30%">报账部门</td> <%--字段名:部门: --%>
<td width="70%"><bean:write name="pk_deptdoc" filter="false"/></td>
</tr>
<tr>
<td width="30%">经办人员</td> <%--字段名:经办人--%>
<td width="70%"><bean:write name="voperatorid" filter="false"/></td>
</tr>
<tr>
<td width="30%">报账日期</td> <%--字段名:报账日期 --%>
<td width="70%"><bean:write name="doperatordate" filter="false"/></td>
</tr>
<logic:iterate id="ee" name="listmap">
<tr>
<td width="30%">客商名称</td> <%--字段名:客商名称 --%>
<td width="70%"><bean:write name="ee" property="pk_cubasdoc"/></td>
</tr>
</logic:iterate>
</table>
</p>
<center><a href="<%=request.getContextPath()%>/queryDj1.do?method=shenPi&pk_tybz=<bean:write name="pk_tybz" filter="false"/>&vbillno=<bean:write name="vbillno" filter="false"/>&nowRowNo=<bean:write name="nowRowNo" filter="false"/>&checkman=<bean:write name="checkman" filter="false"/>">审批</a>   <a href="<%=request.getContextPath()%>/queryDj1.do?method=queryDj">返回</a>   <a href="<%=request.getContextPath()%>/sjkj/admin.jsp">退出</a></center>
<%--审批 返回 退出 --%>
</div>
</body>
</html>
...全文
383 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
闭目鱼 2010-04-15
  • 打赏
  • 举报
回复
浏览器的原因
leihuanhuan123 2010-04-14
  • 打赏
  • 举报
回复
再<table>中添加border 属性,应该就可以了吧!要不换个浏览器试试……
java504shine 2010-04-14
  • 打赏
  • 举报
回复
再<table>中添加border 属性,应该就可以了吧!要不换个浏览器试试……
justlearn 2010-04-14
  • 打赏
  • 举报
回复
改过以后有没有重启服务器,如果不行,把生成的jsp文件对应的class文件删除掉再启动服务器尝试
lc_ren 2010-04-14
  • 打赏
  • 举报
回复
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<style>
#formwrapper {
width:190px;
margin:15px auto;
padding:20px;
text-align:left;
border:1px #1E7ACE solid;
}
</style>
</head>
<body style="margin:auto;width=100%">
<%
String pk_tybz = (String)request.getAttribute("pk_tybz");
String pk_busiType = (String)request.getAttribute("pk_busiType");
String vbillno = (String)request.getAttribute("vbillno");
String doperatordate =(String)request.getAttribute("doperatordate");
String tbtype = (String)request.getAttribute("tbtype");
String pk_deptdoc = (String)request.getAttribute("pk_deptdoc");
String voperatorid = (String)request.getAttribute("voperatorid");
String pk_tybz_pay = (String)request.getAttribute("pk_tybz_pay");
Double bcfkje = (Double)request.getAttribute("bcfkje");
String pk_cubasdoc = (String)request.getAttribute("pk_cubasdoc");
String checkman = (String)request.getAttribute("checkman");
%>
<div id="formwrapper">
<center><a href="<%=request.getContextPath()%>/queryDj1.do?method=shenPi&pk_tybz=<bean:write name="pk_tybz" filter="false"/>&vbillno=<bean:write name="vbillno" filter="false"/>&nowRowNo=<bean:write name="nowRowNo" filter="false"/>&checkman=<bean:write name="checkman" filter="false"/>">审批</a>   <a href="<%=request.getContextPath()%>/queryDj1.do?method=queryDj">返回</a>   <a href="<%=request.getContextPath()%>/sjkj/admin.jsp">退出</a></center>
<%--审批 返回 退出 --%>

<center><h4>单据业务类型:<bean:write name="pk_busiType" filter="false"/></h4></center><%--字段名:单据业务类型 --%>

<table border=1>
<tr>
<td width="25%">报账单号</td> <%--字段名:报账单号 --%>
<td width="75%"><bean:write name="vbillno" filter="false"/></td>
</tr>
<tr>
<td width="30%">报账部门</td> <%--字段名:部门: --%>
<td width="70%"><bean:write name="pk_deptdoc" filter="false"/></td>
</tr>
<tr>
<td width="30%">经办人员</td> <%--字段名:经办人--%>
<td width="70%"><bean:write name="voperatorid" filter="false"/></td>
</tr>
<tr>
<td width="30%">报账日期</td> <%--字段名:报账日期 --%>
<td width="70%"><bean:write name="doperatordate" filter="false"/></td>
</tr>
<logic:iterate id="ee" name="listmap">
<tr>
<td width="30%">客商名称</td> <%--字段名:客商名称 --%>
<td width="70%"><bean:write name="ee" property="pk_cubasdoc"/></td>
</tr>
</logic:iterate>
</table>
</p>
<center><a href="<%=request.getContextPath()%>/queryDj1.do?method=shenPi&pk_tybz=<bean:write name="pk_tybz" filter="false"/>&vbillno=<bean:write name="vbillno" filter="false"/>&nowRowNo=<bean:write name="nowRowNo" filter="false"/>&checkman=<bean:write name="checkman" filter="false"/>">审批</a>   <a href="<%=request.getContextPath()%>/queryDj1.do?method=queryDj">返回</a>   <a href="<%=request.getContextPath()%>/sjkj/admin.jsp">退出</a></center>
<%--审批 返回 退出 --%>
</div>
</body>
</html>


还是不管用呀
justlearn 2010-04-14
  • 打赏
  • 举报
回复
TD {border-top:1px ;border-left:1px ;border-right:1px ;border-bottom:1px;}
这个去掉吧,td里面没有border属性,只有borderColor之类的,
去掉这个,然后在table属性里加上 border="1"
gagucheng 2010-04-14
  • 打赏
  • 举报
回复
table 里添加 style="border:1px solid; " 试下看成不
lc_ren 2010-04-14
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wujianhai99 的回复:]
在table标签里加border=1
[/Quote]


不管用····
海子尘 2010-04-14
  • 打赏
  • 举报
回复
在table标签里加border=1

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧