开发者

how to use the font color html

开发者 https://www.devze.com 2023-01-18 21:32 出处:网络
i would like to use the font color here. but seems don\'t know where to put the code for : <html>

i would like to use the font color here. but seems don't know where to put the code for :

 <html>
 <tr>
 <td style="padding-left: 5p开发者_运维技巧x;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px;"> <b> TEST </b><br/></td>
 </tr>
 </html>


To set the font colour, just set the color attribute in the style:

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

This will render the word TEST in red.


 <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>


Use the Css style sheet:

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


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


i didn't Found body tag in your Code neither was table tag..so here is correct code...as per your requirements

                <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>
0

精彩评论

暂无评论...
验证码 换一张
取 消