码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-11-04 16:59:43      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:font   type   www   span   c99   auto   htm   ++   nat   

 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页面嵌入循环代码

标签:font   type   www   span   c99   auto   htm   ++   nat   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!