第一种
<%--
Created by IntelliJ IDEA.
User: Think
Date: 2020-01-08
Time: 12:51
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>细线表格实现方式</title>
<style>
table
{
border-collapse:collapse;
border:1px solid black;
}
td
{
height:20px;
border:1px solid black;
}
</style>
</head>
<body>
<table width="600" cellpadding="0" cellspacing="0" border="1">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</table>
</body>
</html>
第二种
<%--
Created by IntelliJ IDEA.
User: Think
Date: 2020-01-08
Time: 13:47
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>细线表格实现方式2</title>
<style type="text/css">
td{
background: white;
}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="black">
<tr><td>hello wrold </td>
<td>hello wrold </td>
<td>hello wrold </td>
</tr>
<tr><td>hello wrold </td>
<td>hello wrold </td>
<td>hello wrold </td>
</tr>
</table>
</body>
</html>
实现效果