【发布时间】:2016-08-10 12:56:35
【问题描述】:
我希望table 的特定单元格的背景颜色为浅黄色(即透明黄色),为此我使用了属性'rgba'。
我什至删除了整个分区的背景,以保持颜色的透明度。但它只是显示黑色作为背景。
<div id="top">
<table height="60px" width="1030px">
<tr>
<th bgcolor="rgba(222,215,11,0.3)"><u><a href="forum.php" class="class2">Forum</a></u></th>
<th><u><a href="quest.php"class="class2">My Questions</a></u></th>
<th><u><a href="answers.php"class="class2">My Answers</a></u></th>
</tr>
</table>
</div>
【问题讨论】:
-
在下面添加了完整的解释。我猜你已经很久没有用 HTML 编写了,或者你没有使用 HTML 5 :) 不用担心,很容易习惯“新”功能
标签: php html css html-table