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
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
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..
Ti sposto in HTML
Addio Aldo, amico mio... [03/12/70 - 16/08/03]
I commenti non superano i 25px e non cambia niente anche levando il px e scrivendo
<td height="25">
Non ho ancona trovato una soluzione anche se dovrebbe essere banale, ho anche provato con cosi:
Ma non ne vuole comunque sapere....Codice PHP:
<td syle="height:25px">
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>
se scrivi "syle" anziché "style" è possibile che non funzioni ... può inoltre essere che tu debba azzerare eventuali margini / padding.Originariamente inviato da Yeye
Non ho ancona trovato una soluzione anche se dovrebbe essere banale, ho anche provato con cosi:
Ma non ne vuole comunque sapere....Codice PHP:
<td syle="height:25px">
@Hobby: che è quella roba che hai postato?
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'\">   $ValSotto</a></font></td></table>");
}
}
}
}
}
}
print("</td></table>");
}
?>
GRAZIE
comunque dovresti togliere anche l'height della tabella.
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ì:Originariamente inviato da Myaku
@Hobby: che è quella roba che hai postato?
e ottini lo stesso risultatocodice:<!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>
Se invece ti riferisci all'immagine, vuole solo dimostrare l'esattezza dei 25px con FF tutto qui.