gpt4 book ai didi

特定表格的 CSS 样式

转载 作者:行者123 更新时间:2023-11-28 03:39:00 27 4
gpt4 key购买 nike

我被要求从此页面中删除灰色区域 http://ccl.vincentandbell.com/partners/

我试过给表一个 ID <div id="customtable"> ,并在我的 style.css 文件中添加了以下内容:

#customtable { 
background-color: #fffff;
}

但是,这并没有改变灰色区域的颜色。


这是一个灰色区域的 HTML:

<tr>
<td width="105"></td>
<td width="498"><strong>&nbsp;</strong><p></p>
<h3>Cumbria Methodist District</h3>
<p>
<a href="http://www.cumbriamethodistdistrict.org.uk/welcome.htm">http://www.cumbriamethodistdistrict.org.uk/welcome.htm</a>
</p>
</td>
</tr>

以及应用于它的 CSS:

table tbody tr:nth-child(even) {
background-color: #f2f2f2;
}

最佳答案

这里好像有一个类:

table tbody tr:nth-child(even)

你需要覆盖这个类:

table tbody tr:nth-child(even) {
background-color: transparent!important;
}

关于特定表格的 CSS 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44326127/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com