html – 使用style =“color:#fff”为表格颜色显示电子邮件
发布时间:2020-12-14 21:28:41 所属栏目:资源 来源:网络整理
导读:我们希望在电子邮件中显示订单详细信息作为表格 ?table thead tr thHeader 1/th thHeader 2/th thHeader 3/th /tr /thead tbody tr tdblah blah/td tdblah blah/td tdblah blah/td /tr /tbody/table??????????????????????????????????????????? 我们理想地
我们希望在电子邮件中显示订单详细信息作为表格
?<table> <thead> <tr> <th>Header 1</th> <th>Header 2</th> <th>Header 3</th> </tr> </thead> <tbody> <tr> <td>blah blah</td> <td>blah blah</td> <td>blah blah</td> </tr> </tbody> </table>??????????????????????????????????????????? 我们理想地想要标题具有背景颜色为’#5D7B9D’,文本颜色为’#fff’。 问题是 >如何使标题文本显示为白色? 解决方法
你可以轻松地这样做:
<table> <thead> <tr> <th bgcolor="#5D7B9D"><font color="#fff">Header 1</font></th> <th bgcolor="#5D7B9D"><font color="#fff">Header 2</font></th> <th bgcolor="#5D7B9D"><font color="#fff">Header 3</font></th> </tr> </thead> <tbody> <tr> <td>blah blah</td> <td>blah blah</td> <td>blah blah</td> </tr> </tbody> </table> 演示: – http://jsfiddle.net/VWdxj/7/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |