Disabled input text color

前端 未结 10 846
野性不改
野性不改 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 23:09

    Phone and Tablet webkit browsers (Safari and Chrome) and desktop IE have a number of default changes to disabled form elements that you'll need to override if you want to style disabled inputs.

    -webkit-text-fill-color:#880000; /* Override iOS / Android font color change */
    -webkit-opacity:1; /* Override iOS opacity change affecting text & background color */
    color:#880000; /* Override IE font color change */
    

提交回复
热议问题