【问题标题】:How I change the color of table fonts/ contents with inline CSS [duplicate]如何使用内联 CSS 更改表格字体/内容的颜色 [重复]
【发布时间】:2020-02-20 21:25:42
【问题描述】:

这是我的表格格式,请告诉我如何更改表格中的字母颜色

<table border="1" background="images/haya1.jpg" cellpadding="5" cellspacing="10" width="30%" align="center" bordercolor="brown" bgcolor="red">
    <tr>
        <th>Name</th>
        <th>Subject</th>
        <th>Class</th>
    </tr>
    <tr>
        <td rowspan="2">Abdullah</td>
        <td>English</td>
        <td><b>Five</b></td>
    </tr>
    <tr>
        <td>Urdu</td>
        <td><b>Five</b></td>
    </tr>
    <tr>
        <td colspan="3">Abdullah Decleared as Fail</td>
    </tr>
</table>

【问题讨论】:

  • 最好的方法是先阅读一点关于 css 的知识。例如,按照初学者教程进行操作。比在这里提问并得到答案要快得多。
  • 是的,谢谢......

标签: html css


【解决方案1】:

我认为这是最好的方法..

 <tr style="color: yellow">
     <th>Name</th>
     <th>Subject</th>
     <th>Class</th>
  </tr>

【讨论】:

    猜你喜欢
    • 2013-06-15
    • 1970-01-01
    • 1970-01-01
    • 2014-08-24
    • 2016-09-18
    • 2016-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多