asp Hello World

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:26:12
<html>
<head>
<title>Hello World</title>
</head>
<body>
<%
for i=2 to 6
%>
<font size=<%=i%>>
hello world!
<br>
</font>
<%
next
%>
</body>
</html>
我今天开始学写的ASP想显示出5次每次都不一样大小
可是出错了
我不知是错在哪里
请指教

很明显

<font size=<%=i%>>

等号不对,改为"=",英文状态下的等号
即:
<html>
<head>
<title>Hello World</title>
</head>
<body>
<%
for i=2 to 6
%>
<font size="<%=i%>">
hello world!
<br>
</font>
<%
next
%>
</body>
</html>