且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在html页面中更改标题颜色?

更新时间:2022-12-03 12:42:22

您应考虑将样式信息放入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
}