|
蓝森林 http://www.lslnet.com 2006年8月25日 8:28
[asp]帮我排个表格!
帮我把这个产品表格每行排两个!!
<table width="40%" class="table-xia" border="0" cellspacing="0" cellpadding="10" align="left">
<tr>
<td width="20%" rowspan="4" class="table-you" align="center"><table onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width="100" height="100" cellspacing="1" cellpadding="2" bgcolor="#e1e1e1" border="0">
<tbody>
<tr>
<td width="100" height="100" bgcolor="#ffffff" align="center"><%if rs("bookpic")="" then
response.write "<div align=center><a href=list.asp?id="&rs("bookid")&" ><img src=images/emptybook.gif width=90 height=90 border=0></a></div>"
else%>
<a href="list.asp?id=<%=rs("bookid")%>" ><img src="<%=trim(rs("bookpic"))%>" width="100" border="0" height="100" /></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="60%"><img src="images/ring01.gif" /> <a href="list.asp?id=<%=rs("bookid")%>" ><font color="#ff6600"><u><%=trim(rs("bookname"))%></u></font></a></td>
<td width="20%" rowspan="4" class="table-zuo"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><span class="style1">市场价:<s><%=trim(rs("shichangjia"))%> 元</s><br />
会员价:<%=trim(rs("huiyuanjia"))%> 元</span><br />
</td>
</tr>
<tr>
<td align="center"><a href="gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><img src="images/goumai.gif" width="65" height="20" border="0" /></a> <a href="shoucang.asp?id=<%=rs("bookid")%>&action=add"><img src="images/shoucang1.gif" width="65" height="20" border="0" /></a> </td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><font color="#666666">
<%if len(trim(rs("bookcontent")))>150 then
response.write left(trim(rs("bookcontent")),120)&"..."
else
response.write trim(rs("bookcontent"))
end if%>
</font></td>
</tr>
</table> |
|