
ASP 图片调用问题 10
'//健康家居subhome_jkjj_img()setrs=conn.execute("selecttop2tp,bt,htmlfromnewswherelbidin(...
'//健康家居
sub home_jkjj_img()
set rs = conn.execute("select top 2 tp,bt,html from news where lbid in(12,14) and zt=1 and lx=1 order by id desc")
do while not rs.eof
Response.Write "<table width=100% border=0 cellspacing=0 cellpadding=1><tr><td align=center valign=middle height=85>"&_
"<a href=html/"&rs("html")&" target=_blank><img src='"&rs("tp")&"' width=150 height=96 border=0></a>"&_
"</td></tr></table><table width=95% border=0 cellspacing=0 cellpadding=0 align='center' style='TABLE-LAYOUT: fixed'></table>"
rs.movenext
loop
rs.close
set rs=nothing
end sub
这个代码 我想叫图片横着显示怎么该呀
这个好象是竖着显示的 图片 展开
sub home_jkjj_img()
set rs = conn.execute("select top 2 tp,bt,html from news where lbid in(12,14) and zt=1 and lx=1 order by id desc")
do while not rs.eof
Response.Write "<table width=100% border=0 cellspacing=0 cellpadding=1><tr><td align=center valign=middle height=85>"&_
"<a href=html/"&rs("html")&" target=_blank><img src='"&rs("tp")&"' width=150 height=96 border=0></a>"&_
"</td></tr></table><table width=95% border=0 cellspacing=0 cellpadding=0 align='center' style='TABLE-LAYOUT: fixed'></table>"
rs.movenext
loop
rs.close
set rs=nothing
end sub
这个代码 我想叫图片横着显示怎么该呀
这个好象是竖着显示的 图片 展开
1个回答
展开全部
这样试一下?
sub home_jkjj_img()
set rs = conn.execute("select top 2 tp,bt,html from news where lbid in(12,14) and zt=1 and lx=1 order by id desc")
Response.Write "<table width=100% border=0 cellspacing=0 cellpadding=1><tr>"
do while not rs.eof
Response.Write "<td align=left valign=middle height=85>"&_
"<a href=html/"&rs("html")&" target=_blank><img src='"&rs("tp")&"' width=150 height=96 border=0></a>"&_
"</td>"
rs.movenext
loop
Response.Write "</tr></table>"
rs.close
set rs=nothing
end sub
sub home_jkjj_img()
set rs = conn.execute("select top 2 tp,bt,html from news where lbid in(12,14) and zt=1 and lx=1 order by id desc")
Response.Write "<table width=100% border=0 cellspacing=0 cellpadding=1><tr>"
do while not rs.eof
Response.Write "<td align=left valign=middle height=85>"&_
"<a href=html/"&rs("html")&" target=_blank><img src='"&rs("tp")&"' width=150 height=96 border=0></a>"&_
"</td>"
rs.movenext
loop
Response.Write "</tr></table>"
rs.close
set rs=nothing
end sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询