ASP里调用数据如何控制图片每行显示为3个

[复制链接]
查看11 | 回复2 | 2008-1-15 09:11:22 | 显示全部楼层 |阅读模式
i=0while not rs.eof then[td]i=i+1if i/3=int(i/3) then response.write "[/tr][tr]"[td]rs.movenextwendend if
回复

使用道具 举报

千问 | 2008-1-15 09:11:22 | 显示全部楼层
每行三个,可以参考一下:
图片代码

回复

使用道具 举报

千问 | 2008-1-15 09:11:22 | 显示全部楼层
这样在网速慢的时候查出来会很慢,可以用css+div来实现-css-.tt{width="90px;"} .tt ul{width="90px;"} .tt li{width="30px; margin:5px 5px 5px 5px;"} -asp-


  • [img][/img]
    " />
    图片间的距离可以用margin:0 0 0 0;控制图片的间距,(上,右,下,左)
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    主题

    0

    回帖

    4882万

    积分

    论坛元老

    Rank: 8Rank: 8

    积分
    48824836
    热门排行