Safari CSS字体颜色问题 [英] Safari CSS Font Color issue

查看:166
本文介绍了Safari CSS字体颜色问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mac book,iphone和ipad上的Safari浏览器中遇到了字体颜色问题。
禁用元素变成灰色,我希望它保留原来的
颜色黑色。

这是我的css代码:



pre> input [disabled],textarea [disabled],
select [disabled ='disabled'] {
color:#000000!important;
}

我也尝试使用颜色名称,但他的结果是相同的。



感谢您的帮助!

解决方案

这是我发现的唯一解决方案适用于FF,Chrome,Safari和Safari Mobile。欢迎!

 输入[disabled],textarea [禁用],
选择[disabled ='disabled'] {
-webkit-text-fill-color:rgba(0,0,0,1);
-webkit-opacity:1;
color:rgba(0,0,0,1);
背景:白色;
}


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;
}

这篇关于Safari CSS字体颜色问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆