ASP 图片排列问题!

来源:百度知道 编辑:UC知道 时间:2024/05/02 20:02:19
最近我在修改一个网站,原来它的图片是向下排列的,现在我想将它打横排列!程序如下:<td width="41%" height="46" valign="top"><div align="center">
<%
i=0
sql="select top 3 id,title,picflag,content,creatdate from product3 where cnflag=1 and tjflag=1 order by editdate desc,id"
rs.open sql,cn,1,1
do while not rs.eof
'url="product_info.asp?prono="&rs("id")&""" target=""_blank"
url="view.asp?prono="&rs("id")&""" target=""_blank"
%>
<%if i=1 then%>
</div>
<table width="100%" border="0" cell

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<%set rs=server.CreateObject("adodb.recordset")
rs.open"select * from news where nclassid=6 order by nid desc",conn,1,1
if rs.eof and rs.bof then
response.write "<center><br><font color=red size=2>对不起,暂无新闻!</font></font>"
'response.End
else
%>
<%
if not rs.eof then
i=1
do while not rs.eof%>
<td align="left" valign="top" ><table width="267" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30" height="20" al