奇怪现象,为何会有一条白线呢?

proXP2004 2005-07-13 11:54:41
我做了一个asp网页,里面有几类,当分别点击某一类的时候,此页会出现这一类别的图片,图片由两部分组成,上面的部分是动态,根据类别变化,下页的图片不变。但是问题出来了,点击某一类时,虽然会出现此类的图片,但两个图片之间有一线白线,把两个图片分开了,中间一线白线。帮忙
...全文
311 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
Allentro 2005-07-13
  • 打赏
  • 举报
回复
表格的问题吧!
danis_cn 2005-07-13
  • 打赏
  • 举报
回复
代码发出来!
mengqiang815 2005-07-13
  • 打赏
  • 举报
回复
单元格之间没有设置值,你可以先把背景设成种色,,再把表格设成他的反色。。
一下子就看出来了//
尚和空四 2005-07-13
  • 打赏
  • 举报
回复
board=0
超级大笨狼 2005-07-13
  • 打赏
  • 举报
回复
注意不可见字符。
younger1999 2005-07-13
  • 打赏
  • 举报
回复
你在<img>里加一个board=0试试
dreampeter 2005-07-13
  • 打赏
  • 举报
回复
表格的行距,边距,边框都要为0
再有就是空行内的<td>要注意这里最好不要有 的代码,否则可能会出现,你设置了行高为1但还是有一个字符的高度的情况。
manio 2005-07-13
  • 打赏
  • 举报
回复
你在<img>里加一个board=0试试。再不行把所有的cellspacing cellpadding全改到0再看看啊。
proXP2004 2005-07-13
  • 打赏
  • 举报
回复
整个表都出来了
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%dim lb,a
lb=Request.Querystring("class")
if lb="01" then
response.write"<img src='image/cy.gif' height='44' width='575'>"
end if
if lb="02" then
response.write"<img src='image/yl.gif' height='44' width='575'>"
end if
if lb="04" then
response.write"<img src='image/jj.gif' height='44' width='575'>"
end if
if lb="05" then
response.write"<img src='image/fs.gif' height='44' width='575'>"
end if
%>
</td>
</tr>
<tr>
<td><img src="image/bg-top.gif" width="575" height="31"></td>
</tr>
<tr>
<td background="image/bg-mid.gif"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="49%">
<% set cs=server.createobject("adodb.recordset")
sql="select top 50 * from gq where lbid='"&str&"'"
cs.open sql,conn,1,1
i=0
%>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<% DO WHILE NOT CS.EOF%>
<% if (i mod 2)=0 then%>
<% if (i mod 4)=0 then%>
<tr>
<%else%>
<tr>
<%end if%>
<%end if%>
<td width="50%"><a href="detail/images.asp?id=<%=cs("lname")%>" target="_blank"><%=cs("subject")%></a></td>
<% i=i+1
cs.movenext
loop%>
</tr>
</table> </td>
<%
set cs=server.createobject("adodb.recordset")
sql="select top 20 * from 打折信息 where 类型='"&str&"'"
cs.open sql,conn,1,1%>
<td width="51%" align="left" valign="top">
<% DO WHILE NOT CS.EOF
response.write "·<a href=detail/images.asp?id="&cs("帐号")&" target=_blank>"&left(cs("打折信息"),10)&"....</a><br>"
cs.movenext
loop

%>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="image/bg-bottom.gif" width="575" height="26"></td>
</tr>
</table>
manio 2005-07-13
  • 打赏
  • 举报
回复
单元格间距和填充有没有设值?把<TABLE>也粘出来啊。
proXP2004 2005-07-13
  • 打赏
  • 举报
回复
代码如下:
<tr>
<td>
<%dim lb,a
lb=Request.Querystring("class")
if lb="01" then
response.write"<img src='image/cy.gif' height='44' width='575'>"
end if
if lb="02" then
response.write"<img src='image/yl.gif' height='44' width='575'>"
end if
if lb="04" then
response.write"<img src='image/jj.gif' height='44' width='575'>"
end if
if lb="05" then
response.write"<img src='image/fs.gif' height='44' width='575'>"
end if
%>
</td>
</tr>
<tr>
<td><img src="image/bg-top.gif" width="575" height="31"></td>
</tr>
主要的代码就是上面的那些了,如果静态的图片没有问题。
lnboy1003 2005-07-13
  • 打赏
  • 举报
回复
应该是表格问题,把代码贴出来
zy51 2005-07-13
  • 打赏
  • 举报
回复
表格的设置问题吧。十有八九是表格设置不当。

28,406

社区成员

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

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