Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 11
  1. #1

    background della td in ie e firefox

    <TABLE WIDTH='600' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
    <TR background='tileset/bigcell.jpg'><TD align='center'>Non Hai Abbastanza Denaro</TD></TR></table>

    perche in firefox mi visualizza correttamente il background della tr mentr in IE no?


    come posso fare per rimediare?

  2. #2
    Se proprio devi :

    <TABLE WIDTH='600' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
    <TR><TD align='center' background='tileset/bigcell.jpg'>Non Hai Abbastanza Denaro</TD></TR></table>


    nel TD, non nel TR.

  3. #3
    ma quando ho piu td nella tr?


    cioe io ho un background per riga il comodo è che non importa quante td metto, basta che tengo i limiti.


    non c'è il modo di far andare il background delle tr in IE?

  4. #4
    nel tuo foglio di stile:

    td{
    background: url(tileset/bigcell.jpg) 0 0 repeat
    }

  5. #5
    explorer di ......allora, se metto

    .trgr{
    background: url(tileset/bigcell.jpg) 0 0 repeat
    }


    nel css

    e


    <TR class='trgr'>
    <TD width ='100'></TD>
    <TD><input type='radio' name='razza' value='$scatola_temporanea[1]'/>$scatola_temporanea[1]</td>
    <TD width ='100'></TD></tr>";


    immagine con firefox






    immagine di internet explorer



  6. #6
    Ricapitoliamo:

    1. Se vuoi che tutte le tue TD siano colorate, ti basta nel tuo css aggiungere:

    td{
    background: url(tileset/bigcell.jpg) 0 0 repeat
    }

    ----------------------------------------------------------------------------------------

    2. Se invece solo le TD di una determinata TABELLA devono essere colorate, dai una CLASSE alla tua tabella (es. : <TABLE WIDTH='600' BORDER='0' CELLSPACING='0' CELLPADDING='0' class="si-bg">

    e nel tuo css:

    .si-bg td{
    background: url(bg.gif) 0 0 repeat
    }

    ----------------------------------------------------------------------------------------

    3. Se invece, deciderai tu quali TD debbano essere colorate o meno, allora la classe (class="si-bg") la assegnerai tu a mano al TD



  7. #7
    se guardi le immagini le td me le ha colorate, ha messo il loro disegno, ma in firefox appaiono in un modo, in ie appaiono in un altro, ma il codice è lo stesso :S ed è l'ultimo caso che hai detto, ho dato a mano la classe alla td che mi interessava

  8. #8
    Solo ora mi ha caricato le immagine che hai postato.

    Ti riferisci alla sezione sulla sisnistra ( l'elenco delle razze) o al menu di destra?
    Le immagini si riferiscono al codice che hai postato, ma questo porta ancora la classe ancora al TR e non al TD<TR class='trgr'>

    Ora purtroppo devo staccare. A domani




  9. #9
    mi riferisco al menu si sinistra, l'elenco delle razze


    ora quella tabella è creata cosi:

    $lettura_risultati=mysql_query("select * from razze");
    ?>
    <BODY>
    <form method='post' action='index.php'>
    [img]tileset/bighead.jpg[/img]
    <TABLE WIDTH="600" BORDER="0" ALIGN="center" CELLSPACING="0" CELLPADDING="0">

    <?


    if(mysql_num_rows($lettura_risultati)>0){
    while($scatola_temporanea=mysql_fetch_array($lettu ra_risultati)){
    echo"
    <TR class='trgr'>
    <TD width ='100'></TD>
    <TD><input type='radio' name='razza' value='$scatola_temporanea[1]'/>$scatola_temporanea[1]</td>
    <TD width ='100'></TD></tr>";
    }}?>
    <TR background='tileset/bigcell.jpg'>
    <TD align='center' width='100'></TD>
    <TD width='400' align='left'><input type="submit" value="Vedi L'elenco delle classi Della Razza" /></TD>
    <TD align='left'></TD>
    </TR>
    <input type="hidden" name="pagina" value="descrrazze.php">

    </TABLE>
    [img]tileset/bigfoot.jpg[/img]





    e nel css



    <style type="text/css">
    .buttontype {
    background-image:url("tileset/buttoncell.jpg");
    height:25px;float: left;
    color: #663300;
    font-family: times new roman;
    font-weight: bold;
    font-size: 12px;
    border: 0px solid #663300;
    background-color: #cc9933;
    }

    .trgr{
    background: url(tileset/bigcell.jpg) 0 0 repeat
    }
    </style>

  10. #10
    echo"
    <TR class='trgr'>
    <TD width ='100'></TD>
    <TD><input type='radio' name='razza' value='$scatola_temporanea[1]'/>$scatola_temporanea[1]</td>
    <TD width ='100'></TD></tr>";
    }}?>
    <TR background='tileset/bigcell.jpg'>
    La classe è applicata ancora alla TR; l 'ultima TR ha ancora lo sfondo richiamato al suo interno...
    Puoi provare ad applicare la class trgr al TD?

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.