Css 如何在visual basic asp.net web应用程序中更改表格单元格或行的背景色
在一个显示两列、多行表格的Visual Basic WEB应用程序中,问题在左边列,答案在右边列,如何设置特定单元格或整行的背景颜色?(这就是我将如何指示选择)Css 如何在visual basic asp.net web应用程序中更改表格单元格或行的背景色,css,asp.net,webforms,Css,Asp.net,Webforms,在一个显示两列、多行表格的Visual Basic WEB应用程序中,问题在左边列,答案在右边列,如何设置特定单元格或整行的背景颜色?(这就是我将如何指示选择) 专栏1 专栏2 问题1 答复1 问题2 答复2 问题3 答复4 <table> <tr> <th>Column1</th> <th>Column2</th>
专栏1
专栏2
问题1
答复1
问题2
答复2
问题3
答复4
<table>
<tr>
<th>Column1</th>
<th>Column2</th>
</tr>
<tr>
<td style="background-color:gray;">Question 1</td>
<td>Answer 1</td>
</tr>
<tr>
<td>Question 2</td>
<td>Answer 2</td>
</tr>
<tr style="background-color:yellow;">
<td>Question 3</td>
<td>Answer 4</td>
</tr>
</table>