jsp第二次作业

 1 <%@ page language="java" contentType="text/html; charset=utf-8"
 2 pageEncoding="utf-8"%>
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 4 <html>
 5 <head>
 6 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 7 <title>Insert title here</title>
 8 <style>
 9 table{
10 width: 200px;
11 height:200px;
12 text-align: center;
13 }
14 </style>
15 </head>
16 
17 <body>
18 <table border = "1" cellspacing="0" cellpadding="0">
19 <%
20 for(int i =0;i<3;i++){
21 out.print("<tr>");
22 for(int j =0;j<5;j++){
23 out.print("<td>"+j+"</td>");
24 }
25 out.print("</tr>");
26 }
27 %>
28 </table>
29 </body>
30 </html>

 

posted @ 2021-03-11 10:24  晗晗晗  阅读(30)  评论(0编辑  收藏  举报