打印

[asp] 求助asp图片输出显示一直改不了?

<table width="770"  border="0" align="left" cellpadding="0" cellspacing="0" class="partypic">
        <tr>
          <td height="98">
            <div align="center">
              <ul>
                <%
                     Set RsContent=Server.CreateObject("Adodb.Recordset")
                     SqlContent= "Select top 8 * from ImgData where fClassID=70 order by ID desc"
                     RsContent.open SqlContent,conn
                     
                     if RsContent.eof and RsContent.bof then %>
                <%else
                     while (Not RsContent.eof)
                     title=left(RsContent("Photo_Name"),10)
                     %>
              </ul>
              <div align="center" class="class_img"><A href="ShowPic1.asp?id=<%=RsContent("id")%>&class=61" target="_blank"><img src="ShowImg.Asp?ID=<%=RsContent("id")%>" width="120" height="80" border="0"></A><br />
                <A href="ShowPic1.asp?id=<%=RsContent("id")%>&class=61" target="_blank"><%=title%></A>
              </div>
              <ul>
                  <%
                     RsContent.Movenext
                     wend
                     end if
                     RsContent.close
                     Set RsContent = Nothing
                     %>
              </ul>        
          </div></td>
        </tr>
</table>

我想需要的是横向排列的,现在一直是竖的~~不知道为什么?
好象用CSS控制也不行,因为想做成向左滚动的。
div不够宽?
好像div宽度问题
if RsContent.eof and RsContent.bof then %>
      <%else
     while (Not RsContent.eof)
%>
  </ul>

这几行是什么逻辑?特别是搞了个 </ul>上去。
需要换行的话,div {width:100px;;float:left}
乐于助人、严格管理、言多必失。无知者无罪。Keep your waiting,I am come back.
编程资源:http://book.kuhanzhu.com
对管理有异议,请前往事物区进行投诉。请勿PM。

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!