【发布时间】:2018-07-26 07:34:34
【问题描述】:
我在这个 URL 上使用了一个 HTML 表格:https://www.pascaldegut.com/pages/prestation-webdesign,带有红色叉号和绿色勾号。
它在桌面上运行良好,但使用我的 iPhone (Safari),十字和检查是黑色的
这是我使用的代码示例
<table class="blueTable" border="1" cellpadding="0" cellspacing="0" rules="all" frames="border" style="width: 100%;">
<thead>
<tr>
<th style="width: 40%;">Services</th>
<th style="width: 20%;">Basique</th>
<th style="width: 20%;">PREMIUM</th>
<th style="width: 20%;">GOLD</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text">Audit & CR Vidéo</td>
<td class="check" style="color: #006600">✔</td>
<td class="check" style="color: #006600">✔</td>
<td class="check" style="color: #006600">✔</td>
</tr>
<tr>
<td class="text">Design Page Accueil</td>
<td class="check" style="color: #006600">✔</td>
<td class="check" style="color: #006600">✔</td>
<td class="check" style="color: #006600">✔</td>
</tr>
</tbody>
</table>
此外,我尝试用这段代码强制 CSS,但没有成功
td.cross {
color: FF0000 !important;
}
td.check {
color: 006600 !important;
}
这里有什么想法吗? 解决它对我来说很棘手,因为我无法从桌面上的编辑器中复制该问题
提前谢谢你:) 帕斯卡
【问题讨论】:
-
您的 CSS 值需要标签 (
color: #006600 !important)。当 Safari 无法找到这些颜色时,它可能会恢复为默认黑色。 -
哎呀确实忘记了主题标签,但这并没有解决问题:)