<table width="780" border="1" align="center" bordercolordark="#f3f3f3" bordercolorlight="#0099CC"> <% sql="select * from pic" set rs=conn.execute(sql) if not (rs.eof and rs.bof) then %> <tr> <% i=0 do while not rs.eof i=i+1 %> <td align="center"><img src=<%=rs("sqlgdz")%> width="88" height="31" border="0"></td>'rs(里面添加你数据库中存放img地址的字段) <% if i mod 2=0 then 'MOD几就是几列,你的该成MOD 2就可以了 %> </tr><tr> <% end if rs.movenext loop %> </tr> <% end if %> </table>