gpt4 book ai didi

出现 CSS 溢出滚动条但不工作

转载 作者:行者123 更新时间:2023-11-28 10:17:07 24 4
gpt4 key购买 nike

我已经用 css overflow 属性做了一个例子。在这个例子中我遇到了一个溢出滚动的问题。滚动条出现了,但没有工作意味着每当将光标移动到滚动条时,在这个滚动条不活动的时间。我对此一无所知,所以请帮助我。单击滚动条的底部边缘,然后它会起作用,否则不起作用

CSS Code :

thead, tbody
{
display: block;
}

tbody
{
width:750px;
height:400px;
overflow-y:scroll;
}

这里我更新了表行意味着 tbody 在 js 的帮助下动态。

HTML Code :

<div id="table">
<div id="tablelayout">
<div id="tmenu">
<table id="table">
<thead>
<tr id="trmenu">

<th>Table Id</th>
<th>Game Type</th>
<th>Bet</th>
<th>Status</th>
<th>Total Players</th>

</tr>

</thead>
<tbody>


</tbody>

</table>
</div>
</div>
</div>

最佳答案

你可以使用下面的代码

tbody 
{
width:750px;
height:400px;
overflow-y:auto;
}

关于出现 CSS 溢出滚动条但不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20917767/

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