gpt4 book ai didi

jquery - 如何使用css引用除第一行以外的所有行

转载 作者:太空宇宙 更新时间:2023-11-04 10:51:53 24 4
gpt4 key购买 nike

我有一个包含表格的 div 元素。我需要将除第一行以外的所有行的高度设置为固定数字。我还需要将所有列内的文本设置为特定大小,第一行除外:

这是一个 html 我有:

<style>
#divFileSet
{
border:0px solid gray;
position:absolute;
top:170px;
left:170px;
overflow:visible;width:1020px;height:450px;

}
</style>

这是 html 部分:

<div id="divFileSet" >
<table cellspacing ="3px"; cellpadding="3px" style="border:1px solid gray;">
<tr>
<td colspan="2" style="font-size:large; color:white; background-color:#005482;">
<span>File Status:</span>
</td>
</tr>
<tr>
<td></td>
<td><a href="...">Session 1</a></td><br/>
</tr>
<tr>
<td></td>
<td><a href="..."> Session 2</a></td><br/>
</tr>
<tr>
<td></td>
<td><a href="...">Session 3</a></td><br />
</tr>
</table>
</div>

html 生成如下内容:

enter image description here

我需要为第 2 - 4 行设置高度和文本。

如何使用 css 实现?

最佳答案

你可以使用:not(:first-child)

div table tr:not(:first-child) {

}

关于jquery - 如何使用css引用除第一行以外的所有行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34935089/

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