我有一个使用引导程序的 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;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)