html - 如何更改 html 表格中的字体颜色?

标签 html fonts colors

如何更改 html 表格中的字体颜色?

<table>
<tbody>
<tr>
<td>
<select name="test">
<option value="Basic">Basic : $30.00 USD - yearly</option>
<option value="Sustaining">Sustaining : $60.00 USD - yearly</option>
<option value="Supporting">Supporting : $120.00 USD - yearly</option>
</select>
</td>
</tr>
</tbody>
</table>

我试过了

<span style="color: #0000ff;"> 
</span> 

在多个位置......这是行不通的。

最佳答案

<table>
<tbody>
<tr>
<td>
<select name="test" style="color: red;">
<option value="Basic">Basic : $30.00 USD - yearly</option>
<option value="Sustaining">Sustaining : $60.00 USD - yearly</option>
<option value="Supporting">Supporting : $120.00 USD - yearly</option>
</select>
</td>
</tr>
</tbody>
</table>

关于html - 如何更改 html 表格中的字体颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44248294/

相关文章:

javascript - 在第一个函数完成将 CSS 样式应用于元素后运行 JavaScript 函数 - 回调不起作用

html - 自动调节侧 DIV

html - 在 TiddlyWiki 5 中,如何防止代码块内的文本换行?

java - 为单个字符串设置字体?

ios - UIView上层选中区域填充颜色

javascript - Angular 指令使用了两次,覆盖元素

c# - 让文本与 TextBlock 的顶部齐平(不是 VerticalAlignment,我保证!)

objective-c - 添加自定义字体

java - Jtextpane 复制彩色文本并粘贴

ios - UILabel 颜色和字体大小从 XIB 更改