作者:谋 | 来源:互联网 | 2023-01-09 19:41
InmyASP.NETsMVCapplication,tablestyleinsite.cssfileisdefinedas:在我的ASP.NET的MVC应用程序中,sit
In my ASP.NET's MVC application, table style in site.css
file is defined as:
在我的ASP.NET的MVC应用程序中,site.css文件中的表格样式定义为:
table {
border-collapse: collapse;
border-spacing: 0;
margin-top: 1em;
border: 0 none;
}
When I'm creating a table and setting explicitly the border property in my HTML, this style in css is overriding the border property. Result is I'm not able to see borders in my table. This is my table variable:
当我创建一个表并在我的HTML中显式设置border属性时,css中的这个样式会覆盖border属性。结果是我无法在表格中看到边框。这是我的表变量:
tableT = ' | Total | Completed | Inprogress | Pending |
',
I want a table with borders, I don't want to change site.css
as everywhere else that is being used.
我想要一个带边框的表,我不想将site.css更改为正在使用的其他地方。
1 个解决方案