Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    158

    Mozzilla Firefox non mi rispetta l'altezza delle tb espresse in px

    Il mio sito web funziona perfettamente con internet explorer, ma con mozzilla non mi viene rispettata l'altezza dei td che io dichiaro cosi: <td height="25px">, tende a creare tabbelle piu alte di 25px

    Grazie

  2. #2
    Utente di HTML.it L'avatar di telegio
    Registrato dal
    Sep 2001
    Messaggi
    2,592
    non è una cosa di php..
    poi se i contenuti occupano di più non puoi farci nulla...
    e poi al massimo scrivi <td height="25"> senza px..

  3. #3
    Ti sposto in HTML
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  4. #4
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    158
    I commenti non superano i 25px e non cambia niente anche levando il px e scrivendo

    <td height="25">

  5. #5
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    158
    Non ho ancona trovato una soluzione anche se dovrebbe essere banale, ho anche provato con cosi:

    Codice PHP:
    <td syle="height:25px"
    Ma non ne vuole comunque sapere....

  6. #6
    Utente bannato
    Registrato dal
    Feb 2008
    Messaggi
    910
    codice:
    <html>
    
    <head>
    
    </head>
    
    <body>
    
    <div align="left">
    	<table border="1" cellpadding="0" cellspacing="0" width="200" bordercolor="#000000" height="50" align="left">
    		<tr>
    			<td height="25" style="word-spacing: 0; text-indent: 0; text-align: left; margin: 0" valign="top">
    			<p style="margin-top: 0; margin-bottom: 0"></td>
    			<td height="25" style="word-spacing: 0; text-indent: 0; text-align: left; margin: 0" valign="top">
    			<p style="margin-top: 0; margin-bottom: 0"></td>
    		</tr>
    		<tr>
    			<td height="25" style="word-spacing: 0; text-indent: 0; text-align: left; margin: 0" valign="top">
    			<p style="margin-top: 0; margin-bottom: 0"></td>
    			<td height="25" style="word-spacing: 0; text-indent: 0; text-align: left; margin: 0" valign="top">
    			<p style="margin-top: 0; margin-bottom: 0"></td>
    		</tr>
    	</table>
    </div>
    
    </body>
    
    </html>

  7. #7
    Moderatrice di Grafica, Cerco e offro lavoro L'avatar di Myaku
    Registrato dal
    Nov 2006
    Messaggi
    10,349
    Originariamente inviato da Yeye
    Non ho ancona trovato una soluzione anche se dovrebbe essere banale, ho anche provato con cosi:

    Codice PHP:
    <td syle="height:25px"
    Ma non ne vuole comunque sapere....
    se scrivi "syle" anziché "style" è possibile che non funzioni ... può inoltre essere che tu debba azzerare eventuali margini / padding.

    @Hobby: che è quella roba che hai postato?

  8. #8
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    158
    Niente da fare non funziona, mi rispetta il widht ma non l'height... posto il codice:

    Codice PHP:


    <?php 
            
    global $link;
              
    $Categorie=mysql_query("SELECT * FROM tbCategorie order by Categoria"$link );
            
    $NumeroCategorie=mysql_num_rows($Categorie);
            
            if (
    $NumeroCategorie>0)
              {
               print(
    "<table  width=\"135\" height=\"25\" bgcolor=\"silver\" cellpadding=\"0\" cellspacing=\"0\"><td  style=\"word-spacing: 0; text-indent: 0; text-align: left; margin: 0\">");
                 while (
    $RCorrente=mysql_fetch_array($Categorie))
                       {
                         
    $CCorrente=$RCorrente[Categoria];
                         
                         if (
    $CCorrente<>$VCategoria)
                           {
                            
    $VCategoria=$CCorrente;
                            
    $arrProd[]=$VCategoria
                           }
                        }  

                   foreach (
    $arrProd as $Val)
                              {
                                

      
    $i=$i+1;
          

            if ((int)(
    $i/2) == (float)($i/2))
             { 
               
    $ColoreBase="#d9dae8";
             }
            else
             { 
               
    $ColoreBase="#e2e3ed";
             }
                          
            print(
    "[/b]<table width=\"135\" height=\"25\"  bgcolor=silver cellapadding=1 cellspacing=1 ><td bgcolor=\"white\" background=\"Immagini/BottoneVuoto2.gif\" height=\"25\"><h3><center><a href=\"MostraProdotto.php?Categoria=$Val\"><h2><font color=gray><font color=gray>");
            
    if (
    $Val==$Categoria)
       {
        
    $Grassetto="[b]<font color=red>";
       }        
     else
       {
         
    $Grassetto="";
       }
       
    print(
    "$Grassetto $Val</a></font></td></table>");



           if(
    $Categoria<>"" and $Val==$Categoria)
             { 
              
    $SottoCat=mysql_query("SELECT * FROM tbCategorie where Categoria='$Val' order by SottoCat "$link );
              
    $NumeroSottoCategorie=mysql_num_rows($Categorie);
                if (
    $NumeroSottoCategorie>0)
                  {
                    while (
    $SCCorrente=mysql_fetch_array($SottoCat))
                       {
                          
    $SCorrente=$SCCorrente[SottoCat];
                         
                         if (
    $SCorrente<>$VSCategoria)
                           {
                            
    $VSCategoria=$SCorrente;
                            
    $arrSotto[]=$VSCategoria
                           }
                        }
                   if (isset (
    $arrSotto))
                    {
                        foreach (
    $arrSotto as $ValSotto)
                              {

                         if (
    $ValSotto<>"")
                          {
                           print(
    "[/b]<table width=\"135\" bgcolor=silver cellapadding=1 cellspacing=1><td bgcolor=\"white\" background=\"Immagini/BottoneVuoto1.gif\" width=\"135\" height=\"25\" onMouseOver=\"this.bgColor='white'\" onMouseOut=\"this.bgColor='white'\"><h3></center><h3><a href=\"MostraProdotto.php?Cat=$Categoria>$ValSotto\" CLASS=\"textBlue\" STYLE=\"color: #666666\" onMouseOver=\"this.style.color = 'red'\" onMouseOut=\"this.style.color ='#666666'\">  &nbsp $ValSotto</a></font></td></table>");
                          }
     
                       }
                    }
                  }
             }





                              }
            



                print(
    "</td></table>");
              }

    ?>

    GRAZIE

  9. #9
    comunque dovresti togliere anche l'height della tabella.

  10. #10
    Utente bannato
    Registrato dal
    Feb 2008
    Messaggi
    910
    Originariamente inviato da Myaku
    @Hobby: che è quella roba che hai postato?
    Se ti riferisci al codice è un codice che ottiene il risultato di altezza 25px come richiesto per FF ed elimina tutti gli spazi di formattazione. Però se va meglio si può fare anche così:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <style type="text/css" media="screen">
    table {
    	width: 203px;
    	height: 53px;
    }
    td {
    	background: #FFFFCC;
    	width: 100px;
    	height: 25px;
    }
    </style>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    </head>
    <body>
    <table width="203" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#000000">
      <tr>
        <td bordercolor="#000000"></td>
        <td bordercolor="#000000"></td>
      </tr>
      <tr>
        <td bordercolor="#000000"></td>
        <td bordercolor="#000000"></td>
      </tr>
    </table>
    </body>
    </html>
    e ottini lo stesso risultato
    Se invece ti riferisci all'immagine, vuole solo dimostrare l'esattezza dei 25px con FF tutto qui.

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