How to change font-color for disabled input?

后端 未结 10 1109
逝去的感伤
逝去的感伤 2020-12-02 12:48

I need to change the style for a disabled input element in CSS.



        
10条回答
  •  旧时难觅i
    2020-12-02 13:47

    You could use the following style with opacity

    input[disabled="disabled"], select[disabled="disabled"], textarea[disabled="disabled"] {
        opacity: 0.85 !important;
    }
    

    or a specific CSS class

    .ui-state-disabled{
        opacity: 0.85 !important;
    }
    

提交回复
热议问题