asp图片靠的太紧问题

来源:百度知道 编辑:UC知道 时间:2024/05/05 21:24:48
asp做了个图片调用,但是图和图之间挨的太紧,怎么让他们之间有点距离?
<%do while not rs6.eof%>

<td height="106" bgcolor=#ffffff width="106"> <p align="center">
<a href="yuledetail.asp?userid=<%=rs6("userid")%>"><img border="0" src="pic/shotelpic/<%=rs6("hotelpic")%>"onload="javascript:ResizeImage(this, 100, 100);"></a></td>
<%

rs6.movenext

loop

%>
<table width="14%" border="0" cellspacing="0" cellpadding="0" id="table85">
<tr>
<td width="108" rowspan="2">
<table width=108 height="108" border=0 cellspacing=1 bgcolor=#bababa id="table86">
<tbody>
<tr>
<%do while not rs6.eof%>
<td height="106" bgcolor=#ffffff width="

改成这样,你试试:

<table width="14%" border="0" cellspacing="0" cellpadding="0" id="table85">
<tr>
<td width="108" rowspan="2">
<table width=108 height="108" border=0 cellspacing=1 bgcolor=#bababa id="table86">
<tbody>
<%
for i=1 to rs6.recordcount
if rs6.eof then exit for
if (i-1) mod 5 =0 then
%>
<tr>
<%end if%>
<td height="106" bgcolor=#ffffff width="106"> <p align="center">
<a href="yuledetail.asp?userid=<%=rs6("userid")%>"><img border="0" src="pic/shotelpic/<%=rs6("hotelpic")%>"onload="javascript:ResizeImage(this, 100, 100);"></a>
</td>

<%if i mod 5=0 then%>
</tr>
<%
end if
rs.mo