==========为什么这个对不齐==========

lishuai818 2005-10-09 09:47:41
调用sub过程中的内容 一行4列的显示为什么总是对不齐 (这段代码为粮精后台的syscode.asp中 我把它改成一行4列的就是对不齐 气死人了) 求高手来看看
sub ArticleContent(intTitleLen)
dim i,strTemp
i=0

strTemp=""
strTemp= strTemp & "<table width=100% border=0 align=center cellpadding=3 cellspacing=0>"
do while not rsArticle.eof
strTemp= strTemp & "<tr>"

for x=1 to 4
if rsArticle.eof then exit for

strTemp= strTemp & "<td height=107>"
strTemp= strTemp & "<table border=0 align=center cellpadding=0 cellspacing=0 >"
strTemp= strTemp & "<tr>"
strTemp= strTemp & "<td width=102>"
strTemp= strTemp & "<div align=center><a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">"
strTemp= strTemp & "<img border=0 src=" & rsArticle("img") & " width=80 height=80>"
strTemp= strTemp & "</a></div></td>"
strTemp= strTemp & "</tr>"
strTemp= strTemp & "<tr>"
strTemp= strTemp & "<td height=11>"
strTemp= strTemp & "<a href=ArticleShow.asp?ArticleID=" & rsArticle("articleid") & ">" & rsArticle("Title") & ""
strTemp= strTemp & "</a></td>"
strTemp= strTemp & "</tr>"
strTemp= strTemp & "</table>"
strTemp= strTemp & "</td>"
rsArticle.movenext
i=i+1
next
strTemp= strTemp & "</tr>"
strTemp= strTemp & "</table>"

if i>=MaxPerPage then exit do
loop
response.write strTemp
end sub

请帮小弟更正一下 谢谢大家
...全文
174 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
xmrxw 2005-10-09
  • 打赏
  • 举报
回复
帮你解决问题了呵呵!!!在群上聊吧!
jingxiaoping 2005-10-09
  • 打赏
  • 举报
回复
说的不是太明白。一会儿我看看吧。
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
伤心了...
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
???没人管我了吗........
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
还是不行啊
jingxiaoping 2005-10-09
  • 打赏
  • 举报
回复
是宽度,一激动写错了。
jingxiaoping 2005-10-09
  • 打赏
  • 举报
回复
把宽带的实际数字改为25%,高度撤消。
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
俺自己顶一下
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
楼上的方法好象不行啊...
lishuai818 2005-10-09
  • 打赏
  • 举报
回复
顶 谢谢大家了
tigerwen01 2005-10-09
  • 打赏
  • 举报
回复
把align=center改为右对齐试试

28,406

社区成员

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

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