如何在html span中为字体着色 [英] how to color the font in html span

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

问题描述

HI团队,



我想为字体着色Lets Begin但它没有发生。为什么会这样?

我写的代码如下:

HI Team,

I want to color the font Lets Begin but its not happening. why is it so??
I written the code as follows:

<table width="600"  cellpadding="0" cellspacing="0" align="center" class="deviceWidth" bgcolor="" style="margin-top:1%">
<tr>
<td align="left">
<div style="height:2px; background-color: #8000FF; text-align: center">
  <span style=" margin-right:-5%; margin-left:-5%;background-color: white; position: relative; top: -0.5em;">
   <p3> &nbsp; Lets Begin &nbsp;</p3>
  </span>
</div>
</td>
</tr>
</table>

推荐答案

使用颜色 CSS规则,

use color rule of CSS,
<p3 style="color:#f90">   Lets Begin  </p3>





-KR



-KR


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

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