Visualizzazione dei risultati da 1 a 2 su 2

Discussione: problema con rowspan

  1. #1

    problema con rowspan

    Salve a tutti, ho un problema con il rowspan e non riesco a trovare la soluzione.
    il codice sotto, funziona ma non come vorrei io
    codice:
    <table cellspacing="0" border="0">
    <tr>
     <td background="Other/LeftTop.png" width="34" height="12"></td>
     <td background="Other/Top.png" width="1" height="12"></td>
     <td background="Other/RightTop.png" width="14" height="12"></td>
     <td rowspan="2"></td> <td rowspan="2"></td>
    </tr>
    <tr>
     <td background="Other/Left.png" width="34" height="1"></td>
     <td>prova proviamoci provetta provina</td>
     <td background="Other/Right.png" width="14" height="1"></td>
     <td></td>
     <td></td> 
    </tr>
    <tr>
     <td background="Other/Left_2.png" width="34" height="24"></td>
     <td></td>
     <td background="Other/Right_2.png" width="14" height="24"></td>
     <td rowspan="2" background="Other/Time.png" width="1" height="36">19.30</td>
     <td rowspan="2" background="Other/TimeRight.png" width="8" height="24"></td>
    </tr> 
    <tr>
     <td background="Other/LeftBottom_2.png" width="34" height="12"></td>
     <td background="Other/Bottom.png" width="1" height="12"></td>
     <td background="Other/RightBottom_2.png" width="14" height="12"></td>
     <td></td>
     <td></td> 
    </tr> 
    </table>
    Se nella seconda riga (della tabella) aggiungo il rowspan="2" si spostano le celle

    codice:
    <table cellspacing="0" border="0"> 
    <tr>
     <td background="Other/LeftTop.png" width="34" height="12"></td>
     <td background="Other/Top.png" width="1" height="12"></td>
     <td background="Other/RightTop.png" width="14" height="12"></td>
     <td rowspan="2"></td> <td rowspan="2"></td> 
    </tr> 
    <tr>
     <td background="Other/Left.png" width="34" height="1"></td>
     <td rowspan="2">prova proviamoci provetta provina</td>
     <td background="Other/Right.png" width="14" height="1"></td>
     <td></td>
     <td></td> 
    </tr> 
    <tr>
     <td background="Other/Left_2.png" width="34" height="24"></td>
     <td></td>
     <td background="Other/Right_2.png" width="14" height="24"></td>
     <td rowspan="2" background="Other/Time.png" width="1" height="36">19.30</td>
     <td rowspan="2" background="Other/TimeRight.png" width="8" height="24"></td> 
    </tr> 
    <tr>
     <td background="Other/LeftBottom_2.png" width="34" height="12"></td>
     <td background="Other/Bottom.png" width="1" height="12"></td>
     <td background="Other/RightBottom_2.png" width="14" height="12"></td>
     <td></td>
     <td></td> 
    </tr> 
    </table>
    Perché si sposta tutto??? e cosa posso fare per risolvere tutto??
    Grazie
    Immagini allegate Immagini allegate

  2. #2
    Hmmmm.... se nella riga 1 hai 5 colonne di cui 2 con rowspan, nella riga 2 non puoi avere altre 5 colonne, ma avrai 3 sole colonne... tipo:
    codice:
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
    </table>
    o/ !

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.