How do you change the style of a div programmatically

后端 未结 8 2525
攒了一身酷
攒了一身酷 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

    Try this: in the .aspx file put thees lines

    Some text

    then you can use for example

    myDiv.Style["color"] = "red";
    

提交回复
热议问题