如何在html页面中更改标题颜色? [英] How can I change the title color in an html page?

查看:213
本文介绍了如何在html页面中更改标题颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<table>
    <tr>
        <td class="bgimg" valign="middle" width="10%" title="some title" nowrap>
            <img src="images/SomeLogo.gif"/>
        </td>
    </tr>
</table>

如何将标题文本(某些标题")的颜色设置为红色?

How can i format the title text ("some title") color to red?

推荐答案

您应考虑将样式信息放入CSS文件中,并将其html头链接至此文件:

You should consider putting style information into a CSS file and linking to it your html head with:

<link rel="stylesheet" type="text/css" href="YourCSSFile.css" />

然后您的css文件可能包含以下内容:

Then your css file could contain something like:

td{
   font-size: 18px;
   font-weight:normal;
   color:#f7f7f7; //this is a hex value representing a light grey
}

这篇关于如何在html页面中更改标题颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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