简体   繁体   English

如何让这个带有圆角的 HTML 表格(Boostrap 4)?

[英]How to have this HTML table with rounded corners (Boostrap 4)?

I've tried making this table's corners rounded, but none of the attempts was successful:我试过把这张桌子的角弄圆,但没有一次尝试成功:

Here's the Fiddle这是小提琴

I've tried this answer's approach , tried using table-bordered , but none worked.我已经尝试过这个答案的方法,尝试使用table-bordered ,但没有奏效。

Thanks for your help.谢谢你的帮助。

Simple way to implement a table with rounded corners using Bootstrap 4 is to wrap table inside div with "card" class, like this:使用 Bootstrap 4 实现圆角表格的简单方法是使用"card"类将表格包装在div内,如下所示:

<div class="card">
  <table>
    ...
  </table>
</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM