主题:排列问题
<%
set rsp=server.CreateObject("adodb.recordset")
rsp.open "select * from page" ,conn,1,1
'Set rsp = conn.Execute("select * from page")
response.write "<table cellspacing=0 cellpadding=0 width=760 aling=center bgcolor=#FFFFFF border=0 class='grayline'>"
response.write "<tr><td align='center'>"
response.write "<table align='center' bgColor='#CCCCCC' border=0 cellPadding=0 cellSpacing=1 width=720>"
response.write "<tr bgColor='#f1f1f1'>"
response.write "<td height='22' width='20%' align='center'><b>关于我们</b></td>"
response.write "<td height='22' width='20%' align='center'><b>购物指南</b></td>"
response.write "<td height='22' width='20%' align='center'><b>服务保证</b></td>"
response.write "<td height='22' width='20%' align='center'><b>客户服务</b></td>"
response.write "<td height='22' width='20%' align='center'><b>其它说明</b></td></tr>"
for hang=1 to help_hang
response.write "<tr bgColor='#ffffff'>"
for lie=1 to 5
ID=lie*10+hang
ID=cstr(id)
title="title"&id
url="url"&id
body="body"&id
response.write "<td height=23 align=center>"
if rsp(url)<>"" then
response.write "<a href='"&rsp(url)&"'> "&rsp(title)&" </a>"
else
response.write "<a href='page.asp?id="&id&"'> "&rsp(title)&" </a>"
end if
response.write "</td>"
next
response.write "</tr>"
next
response.write "</table></td></tr><tr><td height=3> </td></tr></table></center>"
body99=rsp("body99")
set rsp=nothing%>
如果改为 DIV 怎么改!
<div class="add-3">
<ul>
<li>关于我们</li>
<li>购物指南</li>
<li>服务保证</li>
<li>客户服务</li>
<li>其它说明</li>
</ul>
<%
for hang=1 to help_hang
response.write "<ul>"
for lie=1 to 5
ID=lie*10+hang
ID=cstr(id)
title="title"&id
url="url"&id
body="body"&id
response.write "<li>"
if rsp(url)<>"" then
response.write "<a href='"&rsp(url)&"'> "&rsp(title)&" </a>"
else
response.write "<a href='page.asp?id="&id&"'> "&rsp(title)&" </a>"
end if
response.write "</li>"
next
response.write "</ul>"
next
response.write "</div>"
body99=rsp("body99")
set rsp=nothing
%>
为什么这么改变成7列拉?
请指点!谢谢!
set rsp=server.CreateObject("adodb.recordset")
rsp.open "select * from page" ,conn,1,1
'Set rsp = conn.Execute("select * from page")
response.write "<table cellspacing=0 cellpadding=0 width=760 aling=center bgcolor=#FFFFFF border=0 class='grayline'>"
response.write "<tr><td align='center'>"
response.write "<table align='center' bgColor='#CCCCCC' border=0 cellPadding=0 cellSpacing=1 width=720>"
response.write "<tr bgColor='#f1f1f1'>"
response.write "<td height='22' width='20%' align='center'><b>关于我们</b></td>"
response.write "<td height='22' width='20%' align='center'><b>购物指南</b></td>"
response.write "<td height='22' width='20%' align='center'><b>服务保证</b></td>"
response.write "<td height='22' width='20%' align='center'><b>客户服务</b></td>"
response.write "<td height='22' width='20%' align='center'><b>其它说明</b></td></tr>"
for hang=1 to help_hang
response.write "<tr bgColor='#ffffff'>"
for lie=1 to 5
ID=lie*10+hang
ID=cstr(id)
title="title"&id
url="url"&id
body="body"&id
response.write "<td height=23 align=center>"
if rsp(url)<>"" then
response.write "<a href='"&rsp(url)&"'> "&rsp(title)&" </a>"
else
response.write "<a href='page.asp?id="&id&"'> "&rsp(title)&" </a>"
end if
response.write "</td>"
next
response.write "</tr>"
next
response.write "</table></td></tr><tr><td height=3> </td></tr></table></center>"
body99=rsp("body99")
set rsp=nothing%>
如果改为 DIV 怎么改!
<div class="add-3">
<ul>
<li>关于我们</li>
<li>购物指南</li>
<li>服务保证</li>
<li>客户服务</li>
<li>其它说明</li>
</ul>
<%
for hang=1 to help_hang
response.write "<ul>"
for lie=1 to 5
ID=lie*10+hang
ID=cstr(id)
title="title"&id
url="url"&id
body="body"&id
response.write "<li>"
if rsp(url)<>"" then
response.write "<a href='"&rsp(url)&"'> "&rsp(title)&" </a>"
else
response.write "<a href='page.asp?id="&id&"'> "&rsp(title)&" </a>"
end if
response.write "</li>"
next
response.write "</ul>"
next
response.write "</div>"
body99=rsp("body99")
set rsp=nothing
%>
为什么这么改变成7列拉?
请指点!谢谢!