【问题标题】:How to change background color of a table cell or row in a visual basic asp.net web application program [closed]如何在 Visual Basic asp.net Web 应用程序中更改表格单元格或行的背景颜色 [关闭]
【发布时间】:2017-12-10 01:58:39
【问题描述】:

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

【问题讨论】:

    标签: css asp.net webforms


    【解决方案1】:
    <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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-15
      • 2011-11-06
      • 1970-01-01
      • 1970-01-01
      • 2020-04-28
      • 2012-07-16
      • 1970-01-01
      相关资源
      最近更新 更多