tr td colSpan(列) rowSpan(行)合并

来源:互联网 发布:手机游戏下载java 编辑:程序博客网 时间:2024/05/01 05:29
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <base href="<%=basePath%>">        <title>My JSP 'index.jsp' starting page</title><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0">    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--<link rel="stylesheet" type="text/css" href="styles.css">-->  </head>    <body>  <table border="5"><tr><td rowSpan="2">row 1, cell 1</td><td>row 1, cell 2</td><td>row 1, cell3</td></tr><tr><td>row 2, cell 1</td><td rowSpan="2">row 2, cell 2</td></tr><tr><td>row3, cell 1</td><td>row3, cell 2</td></tr><tr><!-- colSpan 用来合并列--><td  colSpan = "3"style=" text-align:center">colSpan 用来合并列</td></tr></table>    <font face = "楷体">啦啦啦啦</font>    This is my JSP page. <br>  </body></html>

0 0
原创粉丝点击