【CSS】input为disabled时字体颜色(包含placeholder)

input[disabled]{
            color:#7A7977;
            -webkit-opacity:1;
            -webkit-text-fill-color:#7A7977;
            opacity:1 !important;
            background-color: #fff;
        }

::-webkit-input-placeholder{color: #c1bbbb;}
::-moz-input-placeholder{color: #c1bbbb;}
:-ms-input-placeholder{color: #c1bbbb;}
::placeholder{color: #c1bbbb;}
input:disabled::-webkit-input-placeholder{color: #c1bbbb;-webkit-text-fill-color:#c1bbbb;}
input:disabled::-moz-input-placeholder{color: #c1bbbb;-webkit-text-fill-color:#c1bbbb;}
input:disabled:-ms-input-placeholder{color: #c1bbbb;-webkit-text-fill-color:#c1bbbb;}
input:disabled::placeholder{color: #c1bbbb;-webkit-text-fill-color:#c1bbbb;}

推荐阅读更多精彩内容