怎么能让asp实现一行输出两列啊?
下面的一段代码只能是这样显示,(这个ASP是生成html文件用的)12345我想让它变成两列的如12345求高手们帮帮忙了,先谢谢了希望最好不要让我添<table>表格代...
下面的一段代码只能是这样显示 ,(这个ASP是生成html文件用的)
1
2
3
4
5
我想让它变成两列的
如1 2
3 4
5
求高手们帮帮忙了,先谢谢了 希望最好不要让我添<table>表格代码,因为整个源码也没表格代码!
set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
rs1.movenext
loop
rs1.close
set rs1=nothing
end if
偶可是个ASP大菜鸟,高手们最好把源码写出来啊,实用在加分也可以啊
是不错啊,可是为什么不行呢,能不能告诉我模板里怎么设置啊,怎么就是不行呢? 展开
1
2
3
4
5
我想让它变成两列的
如1 2
3 4
5
求高手们帮帮忙了,先谢谢了 希望最好不要让我添<table>表格代码,因为整个源码也没表格代码!
set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
rs1.movenext
loop
rs1.close
set rs1=nothing
end if
偶可是个ASP大菜鸟,高手们最好把源码写出来啊,实用在加分也可以啊
是不错啊,可是为什么不行呢,能不能告诉我模板里怎么设置啊,怎么就是不行呢? 展开
展开全部
set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
dim i
i=1
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
if i mod 2=0 then
response.write "</br>"
i=0
end if
rs1.movenext
i=i+1
loop
rs1.close
set rs1=nothing
end if
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
dim i
i=1
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
if i mod 2=0 then
response.write "</br>"
i=0
end if
rs1.movenext
i=i+1
loop
rs1.close
set rs1=nothing
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询