[英]Color in HTML table not taken into account
我在以下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;
}
这里有什么主意吗? 我无法解决问题,因为我无法从桌面上的编辑器复制问题
在此先感谢您:) Pascal
这与使用Unicode字符✖
和✔
。 我能够检查iPhone上的元素,这似乎是由iPhone Safari预先定义了所用字符的样式和颜色引起的。 通过简单地将它们更改为字体,例如Font Awesome ,您将能够实现所需的功能。
我认为Safari找不到采用以下公式的颜色:#006600
将其更改为以下格式: style="color: rgb(0,102,0)"
<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: rgb(0,102,0)">✔</td> <td class="check" style="color: rgb(0,102,0)">✔</td> <td class="check" style="color: rgb(0,102,0)">✔</td> </tr> <tr> <td class="text">Design Page Accueil</td> <td class="check" style="color: rgb(0,102,0)">✔</td> <td class="check" style="color: rgb(0,102,0)">✔</td> <td class="check" style="color: rgb(0,102,0)">✔</td> </tr> </tbody> </table>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.