2010-10-07 19 views
6

me gustaría usar el color de fuente aquí. pero parece no saber dónde poner el código para:cómo usar el color de fuente html

<html> 
<tr> 
<td style="padding-left: 5px;"> 11.15 - 12.00 </td> 
<td style="padding-left: 5px; padding-bottom:3px;"> <b> TEST </b><br/></td> 
</tr> 
</html> 

Respuesta

18

Para establecer el color de la fuente, acaba de establecer el atributo de color en el estilo:

<table> 
    <tr> 
     <td style="padding-left: 5px; 
        padding-bottom:3px; 
        color:#FF0000; 
        font-weight:bold">TEST</td> 
    </tr> 
</table> 

Esto hará que la palabra TEST en rojo .

4
<html> 
<tr> 
<td style="padding-left: 5px; color: blue;"> 11.15 - 12.00 </td> 
<td style="padding-left: 5px; padding-bottom:3px; color: green;"> <b> TEST </b><br/></td> 
</tr> 
</html> 
4

Uso de la hoja de estilos CSS:

<style> 
.a td{ 
padding-left: 5px; 
padding-bottom:3px; 
color: blue; 
} 
</style> 


<table class="a"> 
    <tr> 
     <td >TEST</td> 
    </tr> 
</table> 
2

i no fundó cuerpo de la etiqueta en el código ni se tag..so mesa aquí es código correcto ... según sus necesidades

   <html> 
        <body> 
         <table> 
          <tr> 
           <td style="padding-left: 5px;color:red"> 11.15 - 12.00 </td> 
           <td style="padding-left: 5px; padding-bottom:3px;"><b>       TEST </b><br/></td> 
          </tr> 
         </table> 
        </body> 
       </html> 
Cuestiones relacionadas