【问题标题】:change color of text when it lay abov an specific div / image当文本位于特定 div / 图像上方时更改文本颜色
【发布时间】:2020-06-29 10:32:14
【问题描述】:

当文本在图片上方时,我如何更改 in this picture 等文本元素的颜色?

我可以用 Javascript / jquery 解决它吗?

【问题讨论】:

标签: javascript html css text colors


【解决方案1】:

试试这个css

h3 {
  filter: invert(1);
  background: inherit;
  background-clip: text;
  color: transparent;
}

【讨论】:

    猜你喜欢
    • 2016-02-02
    • 2012-02-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-22
    • 2018-03-23
    • 2011-11-04
    • 2015-12-31
    相关资源
    最近更新 更多