首页 > Web开发 > 详细

002. 在HTML页面嵌入循环代码

时间:2016-11-04 16:57:57      阅读:162      评论:0      收藏:0      [点我收藏+]
 1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
 2 
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4 
 5 <html xmlns="http://www.w3.org/1999/xhtml">
 6 <head runat="server">
 7      <title>HTML服务器控件</title>
 8     
 9 </head>
10 <body>
11     <form id="form1" runat="server">
12     <div>
13     <%for (int i = 1;i < 7;i++) %>
14     <%{%>
15     <font size=<%= i+1%>>Hello World!</font></br>
16     <%}%>
17 
18     </div>
19     </form>
20 </body>
21 </html>

 

002. 在HTML页面嵌入循环代码

原文:http://www.cnblogs.com/wxylog/p/6030580.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!