asp代码 竖排改为横排,一排4个

2025-02-25 16:06:37
推荐回答(2个)
回答1:

简单的说吧:
i=0
strTemp= strTemp & ""
do while not rsArticle.eof
if i mod 4=0 then
'取余数
strTemp= strTemp & ""
end if
strTemp= strTemp & ""
if i mod 4=3 then
strTemp= strTemp & ""
end if
rs.movenext()
loop
strTemp= strTemp & "
"&rs("xxxxx")&"
"

回答2:

strTemp= strTemp & ""
该为:
i=i+1
if i>4 then
strTemp= strTemp & ""
i=0
end if