代码如下:
<% @ Language="C#" %>
<html>
<head><title>aaa< % % ></title></head>
<body>
<center>
<%
int i;
for(i=2;i<7;i++)
{
%><font size=<%=i%>>WelCome</font><br>
<% } %>
</center>
</body>
</html>
中的<%符号到底是怎么配对的啊?
<% @ Language="C#" %>
<html>
<head><title>aaa< % % ></title></head>
<body>
<center>
<%
int i;
for(i=2;i<7;i++)
{
%><font size=<%=i%>>WelCome</font><br>
<% } %>
</center>
</body>
</html>
中的<%符号到底是怎么配对的啊?
解决方案 »
- 如何判断数组中是否包含某个特定的字符串?
- 取GridView的ID,传到弹出的层去
- 简单的查找问题
- <input runat="server" type="button" onclick="复制" value="内容"> 没反应
- button的postbackrul进行post方式传参
- 大家帮我估计一下价格
- iframe的css问题
- 提个菜问题,算是关于链接的吧!
- VS2003下可不可用asp.net2.0?
- 打开try2.sln文件时,却怎么也打不开
- 在Designer类中什么情况下覆写的GetDesignTimeHtml()不会执行?
- 跪求VS2003.NET经典入门教程(要经典的哦50分悬赏)
2 < % % >
3= <%=i%>>
4 <%
^^
int i;
for(i=2;i<7;i++)
{
%><font size=<%=i%>>WelCome</font><br>
<% } %>
^^
5 <% } %>
<html>
二对 <head><title>aaa< % % ></title></head>
<body>
<center>
三对 <%
int i;
for(i=2;i<7;i++)
{
%><font size=<%=i%>>WelCome</font><br>
四对<% } %>
</center>
</body>
</html>
2.<%
int i;
for(i=2;i<7;i++)
{
%>
3.<font size=<%=i%>>WelCome</font>
4.<% } %>
<% } %>这种到底是起的什么作用呢?
int i;
for(i=2;i<7;i++)
{
%>这个里面只有 { 没有 }
要匹配,所以<% } %>