html - CSS 表格样式在发布版本中不起作用
问题描述
我在标签中有一个带有 CSS 样式的表格,并且 . 我的问题是在调试版本中,CSS 运行良好,就像我想要的那样。
这是图片调试版本。
但是当我发布我的网站时,CSS 的效果不如调试版本。
这是图片发布版本。
我使用了 Visual Studio 2017 C# MVC cshtml,这是我用于 table 的代码:
<div class="row">
<div class="col-lg-12">
<div class=" col-lg-12 table-responsive">
<table class="table color-table primary-table table-bordered table-hover" style="width: 100%;" id="myTableCompany">
<thead>
<tr>
<th style="width: 20%;">No.</th>
<th style="width: 20%;">Code</th>
<th style="width: 60%;">Name</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
如何解决这个问题?我做错了哪一部分?