当前位置:网站首页>原生js 创建表格
原生js 创建表格
2022-07-30 10:40:00 【逆风优雅】
<table class="table-title" cellspacing="0" cellpadding="0" border="0">
<colgroup>
<col style="width:10%"/>
<col style="width:15%"/>
<col style="width:10%"/>
<col style="width:8%"/>
</colgroup>
<thead>
<tr>
<td>户名</td>
<td>地址</td>
<td>所属变压器</td>
<td>停电次数</td>
</tr>
</thead>
</table>
<table class="table-body" cellspacing="0" cellpadding="0" border="0">
<colgroup>
<col style="width:10%"/>
<col style="width:15%"/>
<col style="width:10%"/>
<col style="width:8%"/>
</colgroup>
<tbody>
<tr>
<td>9100096858</td>
<td>莲花街坊13幢305室</td>
<td>台区变压器1</td>
<td>125</td>
</tr>
<tr>
<td>9100096858</td>
<td>莲花街坊13幢305室</td>
<td>台区变压器1</td>
<td>125</td>
</tr>
<tr>
<td>9100096858</td>
<td>莲花街坊13幢305室</td>
<td>台区变压器1</td>
<td>125</td>
</tr>
<tr>
<td>9100096858</td>
<td>莲花街坊13幢305室</td>
<td>台区变压器1</td>
<td>125</td>
</tr>
</tbody>
</table>首页先写个表头:
此处用了两个table,第一个为了实现数据太多,当出现滚动条的时候,表头也跟这滚动
<colgroup>
<col style="width:10%"/>
<col style="width:15%"/>
<col style="width:10%"/>
<col style="width:8%"/>
</colgroup>colgroup的目的是,实现表头和表格内容间距一致
边栏推荐
- OC-ARC(Automatic Reference Counting)自动引用计数
- Database transactions, JDBC operations and data types
- hcip06 ospf special area comprehensive experiment
- 加密和安全
- MySQL | Subqueries
- 安全提示:Qt中的FreeType
- Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory
- JSP 语法简介说明
- WebAPI 复习
- mysql分页查询倒序_【Mysql笔记】MySQL实现分页查询[通俗易懂]
猜你喜欢

Neural Ordinary Differential Equations

干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)

Nacos configuration in the project of battle

360闷声干大事获赞无数,数字安全如何保障?还得看企业安全云

Re17: Read the paper Challenges for Information Extraction from Dialogue in Criminal Law

vscode中写markdown格式笔记的配置过程和相关语法

The configuration process and related syntax of writing markdown format notes in vscode

SST-Calib: A lidar-visual extrinsic parameter calibration method combining semantics and VO for spatiotemporal synchronization calibration (ITSC 2022)

Alibaba Cloud OSS Object Storage

hcip06 ospf special area comprehensive experiment
随机推荐
Scrapy crawler website image crawling
typescript入门之helloworld
jmeter接口压力测试-(二)
Detailed explanation of @RequestBody and @ResponseBody
【云原生】-Docker安装部署分布式数据库 OceanBase
活动速递| Apache Doris 性能优化实战系列直播课程初公开,诚邀您来参加!
log4j中appender的简介说明
4. yolov5-6.0 ERROR: AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' solution
Beyond Stream Processing !第四届实时计算 Flink 挑战赛启动,49 万奖金等你来拿!
真正懂经营管理的CIO具备哪些特质
AB test summary
Still using Swagger?I recommend this interface management artifact with zero code intrusion
【Flume】batchSize和transactionCapacity区别
Drag and drop events, dataTransfer, getBoundingClientRect
RandLA-Net复现记录
OC - Manual Reference Counting Memory Management
单片机开发之静态LED显示
Unity 锁定相机第二弹
Is it too late to apply for PMP now to take the September exam?Share agile full-true mock questions
Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory