Les balises HTML th ne fonctionnent pas correctement dans le nouveau visualiseur de cartes, mais elles fonctionnent très bien dans l’ancien. Voici un exemple de code. Tous les en-têtes s’empilent en haut du code HTML, ce qui fait que les balises td s’empilent sous toutes les balises th.
<table style="width: 99%; border-collapse: collapse;">
<tr>
<th colspan="2" style="padding: 8px; text-align: left; border-bottom: 2px solid #555; background-color: #333; color: white; font-weight: bold;">
Groupe 1 <span style="color: #a2d2ff;">●</span>
</th>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 1</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_1}</td>
</tr>
<tr>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 2</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_2}</td>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 3</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_3}</td>
</tr>
<th colspan="2" style="padding: 8px; text-align: left; border-bottom: 2px solid #555; background-color: #333; color: white; font-weight: bold;">
Groupe 2 <span style="color: #a689f5;">●</span>
</th>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 1</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_1}</td>
</tr>
<tr>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 2</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_2}</td>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 3</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_3}</td>
</tr>
<th colspan="2" style="padding: 8px; text-align: left; border-bottom: 2px solid #555; background-color: #333; color: white; font-weight: bold;">
Groupe 3 <span style="color: #a689f5;">●</span>
</th>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 1</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_1}</td>
</tr>
<tr>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 2</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_2}</td>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 3</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_3}</td>
</tr>
<tr>
<th colspan="2" style="padding: 8px; text-align: left; border-bottom: 2px solid #555; background-color: #333; color: white; font-weight: bold;">
Groupe 4 <span style="color: #fa5050;">●</span>
</th>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 1</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_1}</td>
</tr>
<tr>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 2</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_2}</td>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 3</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_3}</td>
</tr>
<tr>
<th colspan="2" style="padding: 8px; text-align: left; border-bottom: 2px solid #555; background-color: #333; color: white; font-weight: bold;">
Groupe 5 <span style="color: #b9f5a6;">●</span>
</th>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 1</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_1}</td>
</tr>
<tr>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 2</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_2}</td>
</tr>
<tr style="background-color: #f2f2f2;">
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd; border-right: 1.4px solid #ddd; font-weight: 550;">champ 3</td>
<td style="padding: 8px; text-align: left; border-bottom: 1.4px solid #ddd;">{field_3}</td>
</tr> Résultats :

Résultats dans l’ancien visualiseur de cartes :
