注册 登录
编程论坛 ASP技术论坛

产品显示 原来的是 2 行,每行显示 4 个,现在需要修改成 4 行。每行 4 个

jxxh520 发布于 2014-05-21 18:46, 543 次点击
产品显示 原来的是2行,每行显示4个,现在需要修改成4行。每行4个
    <div id="right">
   
        <div class="path_title">您现在的位置:<a href="<%=root%>/index.html">网站首页</a> > <%=titlefl%></div>
        <ul class="products_list">
        <%   
        if rs.eof then
        response.Write "&nbsp;此分类暂无产品!"
        else
        rs.PageSize = plist_num '每页记录条数
        iCount=rs.RecordCount '记录总数
        iPageSize=rs.PageSize
        maxpage=rs.PageCount
        page=request("page")
        if Not IsNumeric(page) or page="" then
        page=1
        else
        page=cint(page)
        end if
        if page<1 then
        page=1
        elseif  page>maxpage then
        page=maxpage
        end if
        rs.AbsolutePage=Page
        if page=maxpage then
        x=iCount-(maxpage-1)*iPageSize
        else
        x=iPageSize
        end if
        %>
        <%For i=1 To x%>
            <li>
                <a href="<%=rs("id")%>.html" title="<%=CSQL(rs("title"))%>"><img name='picautozoom' class="img_border" src='<%=root%><%=rs("img")%>' width='165' height='125' /></a>
                <p><a href="<%=rs("id")%>.html" title="<%=CSQL(rs("title"))%>"><%=left(rs("title"),24)%></a></p>
            </li>
        <%
        rs.movenext
        next
        end if
        %>
        </ul>
     
     <div class="page">
        <%'以下显示分页
        call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
        rs.close
        set rs=nothing
        %>   
     </div>
     
    </div>
2 回复
#2
kingfangden2014-05-23 14:26
把plist_num改成16不就可以了吗?
 

#3
hu9jj2014-05-23 16:56
以下是引用kingfangden在2014-5-23 14:26:40的发言:

把plist_num改成16不就可以了吗?
 
新吉电动车
www.
请注意别打广告!
1