bootstrap-4 - 在引导程序中增加表格边框大小
问题描述
你好我想增加这张桌子的边框尺寸我尝试了很多东西但没有任何反应,如何让主桌变暗?
有没有办法解决这个问题?
<div class="col-xs-12">
<br/>
<table class="table table-bordered">
<thead>
<tr>
<th class="text-center" width="5%">م</th>
<th class="text-center" width="40%">{{$receipt_details->table_product_label}}</th>
<th class="text-center" width="15%">{{$receipt_details->table_qty_label}}</th>
<th class="text-center" width="20%">{{$receipt_details->table_unit_price_label}}</th>
<th class="text-center" width="20%">{{$receipt_details->table_subtotal_label}}</th>
</tr>
</thead>
</table>
</div>
解决方案
如果您不想在线条样式中使用 css。我是为桌子和第一个 td 做的。
<table class="table table-bordered" style="border-width:4px">
<thead>
<tr>
<th class="text-center" style="border-width:4px" width="5%">م</th>
<th class="text-center" width="40%">{{$receipt_details->table_product_label}}</th>
<th class="text-center" width="15%">{{$receipt_details->table_qty_label}}</th>
<th class="text-center" width="20%">{{$receipt_details->table_unit_price_label}}</th>
<th class="text-center" width="20%">{{$receipt_details->table_subtotal_label}}</th>
</tr>
</thead>
</table>
推荐阅读
- intellij-idea - intellij 无法识别来自 @Data 注释的 lombok 生成的方法
- python - 从列表pos_tag序列列表中仅提取名词?
- javascript - 想要从字符串中删除 Html 标签并在结束标签上添加下一行
- sas - SAS:将一个表中的列映射到另一个表中的多个列中的任何一个
- vba - 通过 VBA 传递给 Powershell 字符串的双引号
- go - Terraform 自定义提供程序 - 资源支持错误
- node.js - 来自 NodeJS 的发布请求导致空包
- openlayers - VectorTiles 示例的差异
- ios - 如何在swift 4中获取结构的分组数组?
- c# - .NET Core 实体框架 InvalidOperationException