fail to change placeholder color with Bootstrap 3

前端 未结 10 835
暗喜
暗喜 2021-01-31 01:27

Two questions:

  1. I am trying to make the placeholder text white. But it doesn\'t work. I am using Bootstrap 3. JSFiddle demo

  2. Another question is h

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 01:54

    I'm using Bootstrap 4 and Dennis Puzak's solution does not work for me.

    The next solution works for me

    .form-control::placeholder { color: white;} /* Chrome, Firefox, Opera*/
    :-ms-input-placeholder.form-control { color: white; }  /* Internet Explorer*/
    .form-control::-ms-input-placeholder { color: white; }  /* Microsoft Edge*/
    

提交回复
热议问题