Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di bode
    Registrato dal
    Feb 2007
    Messaggi
    304

    differenza tabelle ie & FF

    Salve a tutti, sto letteralmente impazzendo con queste tabelle, sapreste dirmi perchè vengono visualizzate in diverso modo da FF3 e IE7? Vi allego codice e foto:
    Codice PHP:
      echo"  <table>";
      for(
    $j=1;$j<=6;$j++){
     if(
    $j==1){   echo"<td> <table class=\"turno1\" > ";
         for(
    $i=1;$i<=32;$i++){
         echo
    " <tr><td> <select class=\"reg_form\" name=\"tabellone_giocatore\">";
          echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
                echo
    "</table> </td>";
                                   }
                           
         if(
    $j==2){   echo"<td> <table class=\"turno2\"> ";
         for(
    $i=1;$i<=16;$i++){
                echo
    " <tr><td><select class=\"reg_form\" name=\"tabellone_giocatore\">";
             echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
            echo
    "</table> </td>";
                                   }
                if(
    $j==3){   echo"<td> <table class=\"turno3\"> ";
                         for(
    $i=1;$i<=8;$i++){
             echo
    " <tr><td><select class=\"reg_form\" name=\"tabellone_giocatore\">";
              echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
            echo
    "</table> </td>";
                                   }                               
                       if(
    $j==4){   echo"<td> <table class=\"turno4\"> ";
                         for(
    $i=1;$i<=4;$i++){
                         echo
    " <tr><td><select class=\"reg_form\" name=\"tabellone_giocatore\">";
                       echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
                echo
    "</table> </td>";
                                   }        
                         if(
    $j==5){   echo"<td> <table class=\"turno5\"> ";
                         for(
    $i=1;$i<=2;$i++){
                         echo
    " <tr><td><select class=\"reg_form\" name=\"tabellone_giocatore\">";
                       echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
                echo
    "</table> </td>";
                                   }        
                      if(
    $j==6){   echo"<td> <table class=\"turno6\"> ";
                         for(
    $i=1;$i<=1;$i++){
                         echo
    " <tr><td><select class=\"reg_form\" name=\"tabellone_giocatore\">";
                       echo
    "<option value=$giocatori>$cognome </td></tr>";
                                              }
                echo
    "</table> </td>";
                                   }        
                                          } 
                
                  echo
    "</select>";
                   }
                   }
                   
    ?>
                  </table> 
    codice:
    table.turno1{
    table-layout : fixed;
    width : 90px;
    background : Silver;
    height:800px;
    margin:0px;
    }
    
    
    table.turno2{
    table-layout : fixed;
    width : 90px;
    background : red;
    height:800px;
    margin:0px;
    padding:0px;
    }
    table.turno3{
    table-layout : fixed;
    width : 90px;
    background : yellow;
    height:800px;
    margin:0px;
    padding:0px;
    }
    table.turno4{
    table-layout : fixed;
    width : 90px;
    background : green;
    height:800px;
    margin:0px;
    padding:0px;
    }
    table.turno5{
    table-layout : fixed;
    width : 90px;
    background : blue;
    height:800px;
    margin:0px;
    padding:0px;
    }
    table.turno6{
    table-layout : fixed;
    width : 90px;
    background : white;
    height:800px;
    margin:0px;
    padding:0px;
    }
    Ecco come vengono visualizzate da IE7:


    e qui come vengono visualizzate in FF3:


    Ovviamente il risultato che vorrei ottenere è quello di FF3, su che parametro devo agire?

  2. #2
    Utente di HTML.it L'avatar di gabar-el
    Registrato dal
    Jun 2006
    Messaggi
    2,222
    ho dato un occhio veloce, ma chiediti come mai la turno 1 si vede correttamente e le atre no. direi che dipende da quello. inoltre nella turno 1 ho visto che non hai messo padding....
    inoltre pe snellire il css ti conviene fare così:
    codice:
    table.turno1, table.turno2, table.turno3, table.turno4, table.turno5, table.turno6{
    table-layout : fixed;
    width : 90px;
    height:800px;
    margin:0;
    padding: 0
    }
    
    table.turno1{background:Silver;}
    table.turno2{background:red;}
    table.turno3{background:yellow;}
    table.turno4{background:green;}
    table.turno5{background:blue;}
    table.turno6{background:white;}
    Si fanno sempre nuove scoperte

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 © 2026 vBulletin Solutions, Inc. All rights reserved.