如何使用字体颜色html [英] how to use the font color html

查看:144
本文介绍了如何使用字体颜色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: 5px;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px;"> <b> TEST </b><br/></td>
 </tr>
 </html>


推荐答案

要设置字体颜色,只需设置color属性

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>

这将使TEST字样变为红色。

This will render the word TEST in red.

这篇关于如何使用字体颜色html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆