asp调用图片如何横排显示
来源:百度知道 编辑:UC知道 时间:2024/05/10 08:24:19
一共调用9个图,现在是9个图全部竖着显示,我要9个图在一行显示
<table width="104" height="143" border="0" cellPadding="0" cellspacing="0" borderColor="#111111" id="AutoNumber2" >
<%
sql="select top 9 articleid,domurl,title,content from learning where ifshow=true order by articleid desc"
Set rst= Server.CreateObject("ADODB.Recordset")
rst.open sql,conn,1,1
if rst.eof and rst.bof then
response.write "<p align='center'> 该类型目前还没有任何推荐电影</p>"
else
do while not rst.eof
if rst("domurl")="" then
imgpath="IMAGES/nopic.gif"
else
IMGPath=rst("domurl")
end if
<
<table width="104" height="143" border="0" cellPadding="0" cellspacing="0" borderColor="#111111" id="AutoNumber2" >
<%
sql="select top 9 articleid,domurl,title,content from learning where ifshow=true order by articleid desc"
Set rst= Server.CreateObject("ADODB.Recordset")
rst.open sql,conn,1,1
if rst.eof and rst.bof then
response.write "<p align='center'> 该类型目前还没有任何推荐电影</p>"
else
do while not rst.eof
if rst("domurl")="" then
imgpath="IMAGES/nopic.gif"
else
IMGPath=rst("domurl")
end if
<
按你的要求改了一下,你用下面的代码把你贴出来的代码覆盖掉试试
<table width="104" height="143" border="0" cellPadding="0" cellspacing="0" borderColor="#111111" id="AutoNumber2" >
<tr>
<%
sql="select top 9 articleid,domurl,title,content from learning where ifshow=true order by articleid desc"
Set rst= Server.CreateObject("ADODB.Recordset")
rst.open sql,conn,1,1
if rst.eof and rst.bof then
response.write "<p align='center'> 该类型目前还没有任何推荐电影</p>"
else
do while not rst.eof
if rst("domurl")="" then
imgpath="IMAGES/nopic.gif"
else
IMGPath=rst("domurl")
end if
if IMGPath="" then
IMGPath="IMAGES/nopic.gif"
end if
%><td><table> <tr>
<td height=&qu