html - 建表作业html5
问题描述
我有一个作业,我试图解决它,但我没有成功,所以我想向你寻求帮助,谁能帮助我?
<table border="1">
<caption>
Waarnemeningen-
<time id="nu"></time>
<br>
België
</caption>
<thead>
<tr>
<th rowspan="2">Region</th>
<th rowspan="2">Plaats</th>
<th rowspan="2">Temp</th>
<th colspan="2">Wind</th>
</tr>
<tr>
<th>Snelhied</th>
<th>Richting</th>
<th>Druk / trend</th>
</tr>
</thead>
代码:codepen.io/Kxamil/pen/wvvwPEN
这就是它的样子
解决方案
你需要阅读更多关于行跨度和列跨度的信息,你可以在这里找到
这是与给定设计相匹配的代码
<thead>
<tr>
<th rowspan="2">Region</th>
<th rowspan="2">Plaats</th>
<th rowspan="2" colspan="2">Temp</th>
<th colspan="3">wind</th>
<th colspan="2" rowspan="2">Druk / trend</th>
<th rowspan="2">Druk / trend</th>
</tr>
<tr>
<th>Snelhied</th>
<th colspan="2">Richting</th>
</tr>
</thead>
希望这有帮助
推荐阅读
- serial-port - 将代码上传到ESP12F(esp8266)后,windows COM串口消失了
- tensorflow - 在 keras 中,如何使用自定义对象克隆模型?
- r - 根据其他行中的条件标记行
- c++ - 将物体移动到自身中是否安全
- c# - 如何翻译 NavigationView 菜单按钮?
- ruby-on-rails - 在视图中输入 will_pagenate 方法时收到错误数量的参数(给定 0,预期为 1)
- java - 安卓。向 Google Sheet 脚本发送 POST 请求
- tableau-api - 从计算中排除一堆值
- r - 在 r 中使用 ifelse 语句和 forloops 创建新变量
- javascript - 如何结合 Phaser 3 重力和阻力?