关于DIV导航二级分类换行的问题?新手求指教。
现在是二级分类是在同一行上,我想使二级分类换行。后面是三级即小字的导航。新手请高手指点,不胜感激之至!代码如下:ifkn2_shu>4then'设定下拉菜单的列数resp...
现在是二级分类是在同一行上,我想使二级分类换行。后面是三级即小字的导航。
新手请高手指点,不胜感激之至!
代码如下:
if kn2_shu>4 then '设定下拉菜单的列数
response.write "</div>"
response.write "<div class='row'>"
kn2_shu=1
end if
response.write "<ul style='width:100px;'>" ' style='width:100px;'
response.write "<li white-space:nowrap;><h2><a href='productlist.asp?kind="&kindnum4&"'>"&kindname4&"</a></h2></li>"
kn2=kn2+1
kn2_shu=kn2_shu+1
elseif kindlen=12 then
if kn2>1 then
response.write "</ul>"
end if
if kn2_shu>12 then '设定下拉菜单的列数
response.write "</div>"
response.write "<div class='row'>"
kn2_shu=1
end if
response.write "<ul style='width:100px;'>" ' style='width:100px;'
response.write "<li><h3><a href='productlist.asp?kind="&kindnum4&"'>"&kindname4&"</a></h3></li>"
kn2=kn2+2
kn2_shu=kn2_shu+2
else
end if
kn=kn+1
rs4.movenext
loop
response.write "</ul>"&vbcrlf
response.write "</div>"
response.write "</div>"
response.write "</li>" &vbCrLf
end if
rs4.close
set rs4=nothing
%> 展开
新手请高手指点,不胜感激之至!
代码如下:
if kn2_shu>4 then '设定下拉菜单的列数
response.write "</div>"
response.write "<div class='row'>"
kn2_shu=1
end if
response.write "<ul style='width:100px;'>" ' style='width:100px;'
response.write "<li white-space:nowrap;><h2><a href='productlist.asp?kind="&kindnum4&"'>"&kindname4&"</a></h2></li>"
kn2=kn2+1
kn2_shu=kn2_shu+1
elseif kindlen=12 then
if kn2>1 then
response.write "</ul>"
end if
if kn2_shu>12 then '设定下拉菜单的列数
response.write "</div>"
response.write "<div class='row'>"
kn2_shu=1
end if
response.write "<ul style='width:100px;'>" ' style='width:100px;'
response.write "<li><h3><a href='productlist.asp?kind="&kindnum4&"'>"&kindname4&"</a></h3></li>"
kn2=kn2+2
kn2_shu=kn2_shu+2
else
end if
kn=kn+1
rs4.movenext
loop
response.write "</ul>"&vbcrlf
response.write "</div>"
response.write "</div>"
response.write "</li>" &vbCrLf
end if
rs4.close
set rs4=nothing
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询