How to change placeholder color of specific input field?

前端 未结 3 1500
南旧
南旧 2020-12-06 17:13

I want to change the color of specific place holder. I\'m using many input fields for my project, problem is that in some section i need grey color for placeholder and in so

3条回答
  •  清歌不尽
    2020-12-06 17:32

     input::-moz-placeholder {
        color: white;
      }
      input:-moz-placeholder {
        color: white;
        font-size: 14px !important;
      }
      *::-webkit-input-placeholder {
        color: white;
        font-size: 14px !important;
      }
      *:-ms-input-placeholder {
        color: white;
        font-size: 14px !important;
      }
      *:-moz-placeholder {
        color: white;
        font-size: 14px !important;
      }
    

提交回复
热议问题