在测试当中发现disabled状态的input并没有生效(功能生效了,但是样式没有生效),后来发现是因为我给该input设置了color。
在IE10,google,firefox中这些都优先显示了我后设置的样式,IE9能正常的显示成灰色。
解决方案
input[disabled]
{
color: gray;
}
在测试当中发现disabled状态的input并没有生效(功能生效了,但是样式没有生效),后来发现是因为我给该input设置了color。
在IE10,google,firefox中这些都优先显示了我后设置的样式,IE9能正常的显示成灰色。
解决方案
input[disabled]
{
color: gray;
}