Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 如何在visual basic asp.net web应用程序中更改表格单元格或行的背景色_Css_Asp.net_Webforms - Fatal编程技术网

Css 如何在visual basic asp.net 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>

在一个显示两列、多行表格的Visual Basic WEB应用程序中,问题在左边列,答案在右边列,如何设置特定单元格或整行的背景颜色?(这就是我将如何指示选择)


专栏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>