我有一个使用引导程序的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>
在您的CSS中
th {
background-color: blue;
color: white;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句