高分求助(关于表格的问题)快来啊

newfox 2003-09-12 11:17:05
大家看看这个页面:
<table width="650" cellspacing="0" cellpadding="0" border="1" style="border-collapse: collapse" cellpadding="0" bordercolor="<%=bordercolor%>" align="center">
<tr>

<td valign="top" rowspan="3" width="110" height="1" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="164" align=center>
<tr >
<td valign="top">
<p align="center"> 编号:<%=j%> </p>
</td>
</tr>
</table>
</td>




<td height="18" bgcolor="<%=infobg%>"> <img src="pic/posttime.gif"> 发表于:<%=rs("guestdate")%>           
<%if rs("email")<>"" then %>
<a href="mailto:<%=rs("email")%>"> <img src="pic/email.gif" border="0">E-MAIL</a>
<%else%><img src="pic/email1.gif" border="0">E-MAIL<%end if%> 
</td>


</tr>
<%
guestcontent=ubbcode(rs("guestcontent"))
guestcontent=replace(guestcontent,chr(13),"<br>")
%>

<%'中间的问题及回复%>
<tr>
<td valign="top">
<table width="500" align="center" height="124" cellspacing="0" cellpadding="0">
<tr>
<%if rs("guestreply")<>"" then %>
<td width=1 bgcolor=<%=bordercolor%>></td>
<%if j mod 2<>0 then%>
<td style="padding-left:4px;MARGIN-TOP:2px;MARGIN-BOTTOM:2px;MARGIN-LEFT:2px;MARGIN-RIGHT:2px; word-break: break-all; font-size: 10pt" width="300" height="71"><%else%><td style="padding-left:4px;MARGIN-TOP:2px;MARGIN-BOTTOM:2px;MARGIN-LEFT:2px;MARGIN-RIGHT:2px; word-break: break-all; font-size: 10pt" height="71" width=300>
<%end if%>

<%
secretly=trim(rs("secretly"))
if secretly<>"" then
%>
<br>
<img src="images/hidden.gif"><font color="#800000">对不起!此信息只能咨询老师可以看!!</font><br>
<%else%>

<br>
<%=guestcontent%>
<br>
</p></td></td>
<td width=1 bgcolor=<%=bordercolor%>><td>
<%end if%>
<%else%>
<br>
<%=guestcontent%>

<%end if%>

<%if rs("guestreply")<>"" then %>
<%if j mod 2=0 then%>
<td style="padding-left:4px;MARGIN-TOP:2px;MARGIN-BOTTOM:2px;MARGIN-LEFT:2px;MARGIN-RIGHT:2px; word-break: break-all; font-size: 10pt" width="300" height="71" width=300><%else%><td style="padding-left:4px;MARGIN-TOP:2px;MARGIN-BOTTOM:2px;MARGIN-LEFT:2px;MARGIN-RIGHT:2px; word-break: break-all; font-size: 10pt" width="300" height="71" width=300>
<%end if%>
<font color="#FF0000">回复:</font><p class="font">
<%=ubbcode(rs("guestreply"))%> </p>
<p><font color="#666666">  回复时间:<%=rs("redate")%></font></p>
</td>



<td width=1 bgcolor=<%=bordercolor%>></td><%end if%></tr>
</table>
</td>
</tr>



<tr>
<td height="1" valign="bottom" bgcolor="<%=infobg%>">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="537" bordercolorlight="#183EAD" bordercolordark="#183EAD">
<tr>
<td width="516" height="18"><img src="images/ip.GIF" width="15" height="13">IP:<%=ip%>                  
</td>
<td width="15">
<p align="right"><a title="返回网页顶部" href="#top"><img src="images/gotop.gif" border="0" ></a></td>
</tr>
</table>
</td>
</tr>

</table>

<div align="center">
<%
rs.movenext
i=i+1
j=j-1
loop
%>
<table align=center cellpadding="0" bgcolor="<%=tablebgcolor%>" cellspacing="0" width="650" height="17">
<tr>
<td width="100%" style="padding: 6"> 共有<%=Rs.recordcount%>条 共有<%=page%>/<%=Rs.pagecount%>页
跳到第
<% for go=1 to Rs.pagecount
%>
<a href=index.asp?page=<%=go%>><%=go%></a>
<%next%>
页 
<% if page=1 then %>
<%else%>
<a href=index.asp?page=<%=page-1%>>上一页</a> 
<%end if%>
<% if Rs.pagecount-page <> 0 then %>
<a href=index.asp?page=<%=page+1%>>下一页</a> 
<%else%>
<%end if%>
</td>
<%end if%>
</tr>
</table>
</center>
</div>

<%
connclose()
%>
<hr noshade width="650" color="<%=bordercolor%>" size="1">

添加的<%=guestcontent%>如果用中文的就没有问题.如果用英文的一长串字母就会把表格挤的长长的.而中文就没有这个问题.你说晕不.

这里是添加后的效果.大家来看看啊.

http://flying.redv.com:8080/lq/xinlingxiangyue/ask_answer/index.asp
谢谢了啊.
...全文
32 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaomubiao 2003-09-12
  • 打赏
  • 举报
回复
对就是那个拉,恭喜楼主了!

newfox 2003-09-12
  • 打赏
  • 举报
回复
好像都不是楼上说的那种问题.不过现在我终于找到问题所在了啊.就是在那个
<%else%>
<br>
<%=guestcontent%>

<%end if%>
给<%=guestcontent%>
单独给一行就可以了哦.
嘻嘻我又学到了啊.找了几个星期了啊.

嘻嘻.真是高兴啊
newfox 2003-09-12
  • 打赏
  • 举报
回复
什么啊.没有啊.不是那个的问题.那个100%的是左边的表格.编号的.啊
to:aryou(aryou)
aryou 2003-09-12
  • 打赏
  • 举报
回复
哈,,速度不慢耶,,,这么快就禁止俺在上面写东西了???:)))
  • 打赏
  • 举报
回复
<table width="..." border="0" cellspacing="0" cellpadding="0" height="..." style="word-break:break-all">
luluso 2003-09-12
  • 打赏
  • 举报
回复
<td valign='center' width=200 style='word-wrap:break-word;table-layout:fixed;' bgcolor=>"
在你的表格中加这后面的语句.
aryou 2003-09-12
  • 打赏
  • 举报
回复
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="164" align=center>


把100%转换成象素试试,,,,,

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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