我有一个使用Bootstrap的MVC5应用程序。表格列名是黑色的,白色背景,我想将其更改为蓝色背景,并且列名将是白色的,我该如何实现?我尝试了一些CSS类,但没有成功...
<input type="button" value="Add" onclick="addRow()" class="data-button" id="add-row" />
<table class="table" >
<tr>
<th>
@Html.DisplayNameFor(model => model.name)
</th>
<th>
@Html.DisplayNameFor(model => model.checkBox1)
</th>
<th></th>
</tr>