Back to top

Autore Topic: larghezza tabella  (Letto 1172 volte)

Offline xinyiman

  • Nuovo arrivato
  • *
  • Post: 23
    • Mostra profilo
larghezza tabella
« il: 12 Lug 2015, 15:09:54 »
Ciao ragazzi, ho il seguente problema. Devo creare una tabella per presentare alcuni dati, solo che quando la visualizza va oltre il bordo e non vedo tutte le colonne. Qual'è il problema? con lo style settato non dovrebbe essere contenuto in dimensioni?

Grazie

Codice: [Seleziona]
                $msg = "
                <div class='clearfix'>
                <table class='table pricing' style='width:400px;overflow:auto'>
                <thead>
                <tr>
                <th class='tbl-header'>ID</th>
                <th class='tbl-header'>Fonte</th>
                <th class='tbl-header'>Battistrada</th>
                <th class='tbl-header'>Serie</th>
                <th class='tbl-header'>Diametro</th>
                <th class='tbl-header'>Carico</th>
                <th class='tbl-header'>Velocita</th>
                <th class='tbl-header'>Scultura</th>           
                <th class='tbl-header'>Stagione</th>
                <th class='tbl-header'>Produttore</th>
                </tr>
                </thead>
                <tbody>
                ";

                foreach($query_pag_data as $row) {
                    $msg .= "<tr>";
                    $msg .= "<td class='item'>" . htmlentities($row['Id']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Fonte']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Batt_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Serie_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Diametro_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Carico_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Velocita_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Scultura_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Stagione_Desc']) . "</td>";
                    $msg .= "<td class='item'>" . htmlentities($row['Produttore_Desc']) . "</td>";
                    $msg .= "</tr>";
                }
                $msg .= "</tbody>
                    </table>
                    </div>
                    ";
                //-----------

 



Web Design Bolzano Kreatif