空气净化器 有用么:帮我改一下ASP的错误呀

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 12:16:27
<html>
<head>
<title>创建一个8*8的表格</title>
</head>
<body>
<p align= center>创建8*8的表格</p>
<table align = center cellsacing = 0 cellpadding=10 border =1>
<% dim i
i=100
for introw = 1 to 8
response.write "<tr>"
for intcol = 1 to 8
response.write "<td>"
if ((i/3=0) and (i/5=0)) then response.write(i)

"</td>"
next
response.write "</tr>"
next
end if
%>
</table>
</body>
</html>

你的
if ((i/3=0) and (i/5=0)) then response.write(i)
end if
是干什么用的
你已经指定了i=100了 那么((i/3=0) and (i/5=0))就为假怎么能打印出来i 呢~?
并且你的语法也不对 end if怎么跑到循环外面去了呢~?
你要是想打印出来表格的坐标可以这么写
<html>
<head>
<title>创建一个8*8的表格</title>
</head>
<body>
<p align= center>创建8*8的表格</p>
<table align = center cellsacing = 0 cellpadding=10 border =1>
<%
for introw = 1 to 8
response.write "<tr>"
for intcol = 1 to 8
response.write "<td bgcolor=#CCCCCC>"

response.write introw&"/"&intcol

response.write "</td>"
next
response.write "</tr>"
next

%>
</table>
</body>
</html>
还有 Un365所说的你应该把
if ((i/3=0) and (i/5=0)) then response.write(i)

"</td>"
next
里面的"</td>"换成 response.write "</td>"