帮我看看很简单的ASP代码

来源:百度知道 编辑:UC知道 时间:2024/04/29 12:15:45
<html>
<head>
<title>
hello word!
</title>
</head>
<body>
<% for i=1 to 4 %>
<font size= <% =i %>>
hello word!
</font>
<% next %>
</body>
</html>

得到的结果是:
>hello word!

但是我原来的想法是做四个hello word!不同字体,但是要用ASP的语法
谁帮我找找毛病啊!谢谢了

因为你没有建立IIS服务吧,asp代码需要服务器端执行。所以电脑把size= <% =i %>忽略,这样font之间就是>hello word!了。当然<% next %> 也被忽略不执行了。你可以用javascript代替vbscript