Table build homework html5

问题描述 投票:0回答:1

我有家庭作业,我试图解决它,但没有成功,所以我想请教您,谁可以帮助我?

<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>

https://imgur.com/a/LVB0ysF

代码:codepen.io/Kxamil/pen/wvvwPEN

这是它的外观

https://imgur.com/sunyU7h

html
1个回答
0
投票

您需要阅读有关find here的行跨度和列跨度的更多信息,>

这是与给定设计匹配的代码

 <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>

希望获得帮助

© www.soinside.com 2019 - 2024. All rights reserved.