Safari CSS Font Color issue
I'm having a problem with my font color in safari browser on mac book, iphone and ipad. The disable element turn into gray and I want it to retain its original color black. The result in firefox and chrome are okay.
This is my css code:
input[disabled], textarea[disabled],
select[disabled='disabled']{
color: #000000 !important;
}
I also tried using color name but he result is the same.
Thanks for your help!
This is the only solution I found that works on FF, Chrome, Safari and Safari Mobile. Cheers!
input[disabled], textarea[disabled],
select[disabled='disabled']{
-webkit-text-fill-color: rgba(0, 0, 0, 1);
-webkit-opacity: 1;
color: rgba(0, 0, 0, 1);
background: white;
}
您可以尝试将其设置为纯黑色,如#00001
或#000002
,以便在Safari浏览器尝试覆盖该问题时解决该问题。
input[disabled], textarea[disabled],
select[disabled='disabled']{
color: #000001 !important;
}
链接地址: http://www.djcxy.com/p/15302.html
上一篇: 打印网页时颜色变暗
下一篇: Safari CSS字体颜色问题