-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
Can anyone tell me how can I change the font color of a disabled Datebox. I want it black not gray. I have been able to change the background but not the font color:
.z-datebox-text-disd{
background:transparent;
}
Hi
I write a sample
<zk> <style> .aa.z-datebox-text-disd { background:transparent; } .aa.z-datebox-disd .z-datebox-inp { color:black !important; } </style> <datebox onCreate="self.value = new Date()" /> <datebox onCreate="self.value = new Date()" disabled="true"/> <datebox onCreate="self.value = new Date()" disabled="true" sclass="aa"/> </zk>
OK
It seem a browser issue
<input type="text" value="text" disabled="disabled" style="color:red;">
I noticed it is not deep black (it seems dark grey).
I think it is because something above it is not transparent but I couldn't find what.
It cause by opacity
you can try to add CSS setting
.aa.z-datebox-disd { opacity: 1; -moz-opacity: 1; filter: alpha(opacity=100); }
ZK default setting
.z-combobox-disd { opacity: .6; -moz-opacity: .6; filter: alpha(opacity=60); }
Asked: 2010-04-07 02:40:47 +0800
Seen: 1,226 times
Last updated: Apr 12 '10