如果禁用,我如何更改Checkbox的颜色。 [英] How do I change the color of Checkbox when it is Disabled.
本文介绍了如果禁用,我如何更改Checkbox的颜色。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在禁用时将Checkbox的Text颜色更改为Red。
Plz lemme知道如何做到这一点。
I need to change the Text color of Checkbox to Red when it is disabled.
Plz lemme know how this could be done.
推荐答案
检查此解决方案
如何在ASP.NET中更改禁用复选框的标签颜色?
执行此操作
Do this
objCheckBox.BackColor = System.Drawing.Color.Aqua; //Select whichever color you want
input[type="checkbox"]:checked+label{ font-weight: bold; }
input[type="checkbox"]:disabled+label
{
color:#ccc;
}
这可能会有所帮助。请检查。
谢谢
:)
this might help. Please check.
Thanks
:)
这篇关于如果禁用,我如何更改Checkbox的颜色。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文