这段代码如何改成让图片横排显示
<tablewidth="100%"height="100%"border="0"cellpadding="0"cellspacing="0"background="Im...
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="Img/line-bg.gif" bgcolor="#000000" class="a2">
<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 3 * from news where BigClassName='利达讯信' order by id desc"
rs_news.open sqltext4,conn,1,1
%>
<%i=0
do while not rs_news.eof%>
<tr align="center">
<td>
<a href="shownews.asp?id=<%=rs_news("id")%>" target="_blank">
<img src="UploadFiles/<%=rs_news("firstimagename")%>" width="120" height="130" border="0" /></a>
<a href="shownews.asp?id=<%=rs_news("id")%>" target="_blank"><%=left(rs_news("title"),10)%></a></td>
</tr>
<%rs_news.movenext
i=i+1
if i=5 then exit do
loop
rs_news.close %>
</table> 展开
<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 3 * from news where BigClassName='利达讯信' order by id desc"
rs_news.open sqltext4,conn,1,1
%>
<%i=0
do while not rs_news.eof%>
<tr align="center">
<td>
<a href="shownews.asp?id=<%=rs_news("id")%>" target="_blank">
<img src="UploadFiles/<%=rs_news("firstimagename")%>" width="120" height="130" border="0" /></a>
<a href="shownews.asp?id=<%=rs_news("id")%>" target="_blank"><%=left(rs_news("title"),10)%></a></td>
</tr>
<%rs_news.movenext
i=i+1
if i=5 then exit do
loop
rs_news.close %>
</table> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询