为什么在此Bootstrap 3表格中不能使用边框?(Why isn't the border working in this Bootstrap 3 table?)

编程入门 行业动态 更新时间:2024-10-27 19:24:02
为什么在此Bootstrap 3表格中不能使用边框?(Why isn't the border working in this Bootstrap 3 table?)

使用基础Bootstrap 3 CSS似乎可以正常工作,但对于超级英雄Bootswatch主题,似乎边框并不想出现。 任何想法为什么?

http://jsfiddle.net/VxR7z/

<table class="table table-bordered"> ... </table>

应该处理所有主题。

With the base Bootstrap 3 CSS it seems to work fine, but with the Superhero Bootswatch theme it seems that border just doesn't want to appear. Any idea why?

http://jsfiddle.net/VxR7z/

<table class="table table-bordered"> ... </table>

Should work on all themes.

最满意答案

只需在边界处添加您想要的颜色代码即可

.table-bordered th,.table-bordered td {border:1px solid #ddd!important}

谢谢

Just add this code with your desired color at border

.table-bordered th, .table-bordered td { border: 1px solid #ddd!important }

Thanks

更多推荐

本文发布于:2023-07-05 08:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1035438.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在此   边框   中不   表格   Bootstrap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!