firefox使用深色GTK主题时文本区域故障(vertex主题输入框字体为白色,看不清)

转载自:https://wiki.archlinux.org/index.php/Firefox_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29#.E4.BD.BF.E7.94.A8.E6.B7.B1.E8.89.B2GTK.E4.B8.BB.E9.A2.98.E6.97.B6.E6.96.87.E6.9C.AC.E5.8C.BA.E5.9F.9F.E6.95.85.E9.9A.9C



=============================================================================



使用深色GTK主题时,可能看不到某些网站输入框和文本区域的文字(白底白字)。这可能是因为某些网站只设置了背景色或文本色,而Firefox主题使用了一样的颜色。

可以在~/.mozilla/firefox/xxxxxxxx.default/chrome/userContent.css设置所有网页的标准色彩配置。

下列代码设置输入框默认白底黑字,默认设置不会覆盖网站自己的设置:

input {
    -moz-appearance: none !important;
    background-color: white;
    color: black;
}

textarea {
    -moz-appearance: none !important;
    background-color: white;
    color: black;
}

select {
    -moz-appearance: none !important;
    background-color: white;
    color: black;
}


=================================================================
此方法,我亲自测试可行。
================================================================= 

下列代码强制设置色彩(设置 > 内容 > 颜色中的“允许页面选择显示颜色而无需使用上面的设置”):

input {
    -moz-appearance: none !important;
    background-color: pink !important;
    color: green !important;
}

textarea {
    -moz-appearance: none !important;
    background-color: pink !important;
    color: green !important;
}

select {
    -moz-appearance: none !important;
    background-color: pink !important;
    color: green !important;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值