如何在代码后面更改div的颜色? [英] How to change the colour of a div in code behind ?
本文介绍了如何在代码后面更改div的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改后面代码中div的颜色?
How to change the colour of a div in code behind ?
推荐答案
添加
改变这个div的颜色
添加代码
divChngColor.attributes.Add('style','color:green');
to change color of this div
add code
divChngColor.attributes.Add('style','color:green');
这篇关于如何在代码后面更改div的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文