How do you change the style of a div programmatically

后端 未结 8 2569
攒了一身酷
攒了一身酷 2021-02-20 06:56

How do I change the style (color) of a div such as the following?

\"
8条回答
  •  北海茫月
    2021-02-20 07:15

    You should set your colors in CSS, and then change the CSS class programatically. For example:

    (CSS)

    div.Error {
      color:red;
    }
    

    (ASP.NET/VB)

    ....

提交回复
热议问题