gpt4 book ai didi

html - 表格溢出div时的圆 Angular ?

转载 作者:太空宇宙 更新时间:2023-11-04 15:23:49 25 4
gpt4 key购买 nike

我的结构类似于下面的代码。当表格对于内容容器来说太高时,它会 overflow hidden 的内容。我的问题是可见表的底 Angular 是方形的,尽管它的容器 div 的下 Angular 是圆形的。有没有办法在表格底部和容器 div 底部之间不留空隙的情况下将底部四舍五入?

这是一个重现问题的演示 http://www.jsbin.com/ohejor/1/edit

<div class='container'>
<table>
....table populated by php pulling from mysql table
</table>
</div>

和 CSS

table{ overflow:auto;}
.container{ position:relative; height:75%; border-radius:0px 0px 5px 5px;}

最佳答案

问题是你应该在容器而不是表上设置 overflow-y:

table{}
.container{ position:relative; height:75%; border-radius:0px 0px 5px 5px; overflow-y: auto}

关于html - 表格溢出div时的圆 Angular ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14268135/

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