为什么:
<table style="border:1px solid black; " class="table-bordered table-striped table">
<colgroup>
<col id="Col1" />
<col id="Col2" />
<col id="Col3" />
<col id="Col4" />
<col id="Col5" />
</colgroup>
<thead>
<tr>
<th style="border:1px solid black;" scope="col">@T("Code")</th>
<th style="border:1px solid black;" scope="col">@T("Product")</th>
<th style="border:1px solid black;" scope="col">@T("Unit Price")</th>
<th style="border:1px solid black;" scope="col">@T("Quantity")</th>
<th style="border:1px solid black;" scope="col">@T("Value")</th>
</tr>
</thead>
<tbody>
看起来像:
我想显示所有单元格的所有边框?
应在 <table>
中的样式做过这个吗?
最佳答案
当使用 css 时,你可以像这样设置表格的边框和它的单元格
table, th, td
{
border: 1px solid black;
}
关于c# - 显示表格的所有边框线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21019125/