【发布时间】:2011-06-15 11:16:03
【问题描述】:
这里显示了我遇到的问题。基本上,当我在thead 上放置渐变时,Chrome 会在每个单元格中重复该渐变...实际所需的结果是 firefox 产生的结果——整个thead 的实心渐变。
关于如何解决这个问题的任何想法?
这是我的 css:
thead.header {
font-weight: bold;
border-bottom: 1px solid #9C9C9C;
background-repeat: no-repeat;
background: #C6C6C6;
background: -moz-linear-gradient(top, #DEDEDE 0%, #BDBDBD 80%, #BBB 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#DEDEDE), color-stop(80%,#BDBDBD), color-stop(100%,#BBB));
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#DEDEDE', endColorstr='#BBB',GradientType=0 );
}
如果有帮助,这里是html:
<table style="width:100%" cellpadding="0" cellspacing="0">
<thead class="header">
<tr>
<th width="200px">Actor</th>
<th rowspan="3">Character</th>
</tr>
<tr>
<th>Gender</th>
</tr>
<tr>
<th>Age</th>
</tr>
</thead>
<tbody class="odd">
<tr>
<td width="200px">Test</td>
<td rowspan="3">Test</table>
</td>
</tr>
<tr>
<td>Male</td>
</tr>
<tr>
<td>25</td>
</tr>
</tbody>
</table>
【问题讨论】:
-
你能发布你应用那个 CSS 的 HTML sn-p 吗?
-
我也遇到这个问题
-
请将已发布的答案之一标记为正确,或提供更多信息,以便我们了解如何为您提供帮助。
-
在 Chrome v80 中已解决,但在 Safari (iOS13) 中仍然存在错误
标签: html css google-chrome gradient