Disabled input text color

前端 未结 10 835
野性不改
野性不改 2020-12-22 22:06

The simple HTML below displays differently in Firefox and WebKit-based browsers (I checked in Safari, Chrome and iPhone).

In Firefox both border and text have the s

10条回答
  •  庸人自扰
    2020-12-22 22:59

    This question is very old but I thought that I would post an updated webkit solution. Just use the following CSS:

    input::-webkit-input-placeholder {
      color: #880000;
    }
    

提交回复
热议问题