如何为表格的第一行上色. [英] How to color the first row of the table.

查看:103
本文介绍了如何为表格的第一行上色.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在MVC 3剃刀视图上工作.我有一个带有三行的表.我想用蓝色为第一行上色. site.css中是否有任何属性,以便我可以使用它. site.css文件中没有可用于用蓝色填充第一行的属性,该怎么办?我有没有想念的食物?

I''m working on mvc 3 razor view.I have a table with three rows in it. i want to color the first row with blue color. is there any property in the site.css so that i can use it. there is no property in the site.css file that i can use to fill the first row with blue then how do i do it? is there any propertis that i missed? or do i have to do a for loop if so hw do i do it?

推荐答案

您可以使用Table标题颜色为表的第一行着色.
作为
You can use Table header color to color first row of your table.
as
<th style="color:blue;background-color:yellow>Your First row</th>


或者您也可以选择其他行颜色

http://www.somacon.com/p338.php [


or you can also for alternate row color

http://www.somacon.com/p338.php[^]


这篇关于如何为表格的第一行上色.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆