| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 551 人关注过本帖
标题:求各位路过的大师进来指点一下,急
只看楼主 加入收藏
姑娘min
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-6-13
收藏
 问题点数:0 回复次数:0 
求各位路过的大师进来指点一下,急
程序代码:
<table width="230" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td style="font:bold; line-height:160%">
                 <%
                set rs1=server.createobject("adodb.recordset")
        rs1.open "select top 5  * from shop_news_hm where newsid order by adddate desc",conn,1,1
        if rs1.recordcount=0 then
        %>
       
                  <table width="90%" border="0" cellspacing="0" cellpadding="5" align="center">
                    <tr>
                      <td height="26" align=center>暂无分类,请在后台添加!</td>
                    </tr>
                  </table>
                  <%else%>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  </table>
                  <table width="230"  border="0" align="center" cellpadding="0" cellspacing="0">
                      <ul style="float:left" height="25"  >
                      <%
            while not rs1.eof
                     
            %>
                      <li   style="float:left"><a href="zzfa<%=rs1("newsid")%>.html">
                      <%if len(trim(rs1("newsname")))>8 then
    response.write left(trim(rs1("newsname")),8)&"..."
    else
    response.write trim(rs1("newsname"))
    end if%>
                       
                      </a>
                      </li>
                       <li > <a href="zzfa<%=rs1("newsid")%>.html">
                      <%if len(trim(rs1("newsname")))>8 then
    response.write left(trim(rs1("newsname")),8)&"..."
    else
    response.write trim(rs1("newsname"))
    end if%>
                       
                      </a>
                      </li>
                      <%
            rs1.movenext
            wend
            %>
                    </ul>
                   
                </table>
                <%
        end if
        rs1.close
        set rs1=nothing
        %></td>
                </tr>
            </table>
我想把一个newsid分为4行两列,一共只出现八个newsname,要怎么弄呀?
2013-06-17 11:46
快速回复:求各位路过的大师进来指点一下,急
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019087 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved