gpt4 book ai didi

html - css 边框未应用于表 tr

转载 作者:太空宇宙 更新时间:2023-11-03 20:42:37 26 4
gpt4 key购买 nike

这是 jsfiddle

http://jsfiddle.net/r323e/

很简单:

我想在表格 tr 上加一个边框,所以我尝试了这个:

.table tr{
height: 30px;
border-bottom: 10px solid #000000;
}

应用了 height 属性,但没有应用边框。

为什么要这样?以及如何修复它。

非常感谢

最佳答案

display:block 添加到您的 tr 样式。

.table tr{
display:block;
height: 30px;
border-bottom: 10px solid #000000;
}

关于html - css 边框未应用于表 tr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24578765/

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