<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#carTable{width:100%;}
td{text-align:center;}
</style>
</head>
<body>
<table id="carTable" border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>header</th>
<th>header</th>
<th>header</th>
<th>header</th>
<th>header</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
</tbody>
</table>
<script>
var tTD; //用来存储当前更改宽度的Table Cell,避免快速移动鼠标的问题
var table = document.getElementById("carTable");
for (j =
JavaScript表格头部拉伸
最新推荐文章于 2025-03-27 16:30:45 发布