【问题标题】:in Firefox when selecting text ,they are disappeared.what can we do?在Firefox中选择文本时,它们消失了。我们该怎么办?
【发布时间】:2020-02-02 20:07:03
【问题描述】:

如果你在 firefox 中选择了一个文本,这个文本选择的背景和所选文本的颜色是白色的。 我们能做什么?

【问题讨论】:

    标签: css firefox text selection selected


    【解决方案1】:

    我可以使用这个 css 将选定的文本更改为默认值

    ::-moz-selection {
    background-color: #3390FF;
    color: white;}
    
    ::selection {
    background-color: #3390FF;
    color: white;}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-06
      • 2020-06-05
      • 2010-09-14
      • 2020-04-07
      相关资源
      最近更新 更多