简体   繁体   English

背景剪辑在Mozilla中不起作用

[英]Background-clip doesn't work in Mozilla

I have the following css code: 我有以下CSS代码:

.text-header-wetland h2 {
  color: transparent;
  background-image: url(../../img/light-blue-gradient-wallpaper-3.jpg);
  background-position: center center;
  background-size: cover;
  -webkit-background-clip: text;
}

It works excellent in every browser, except Mozilla Firefox. 它在Mozilla Firefox之外的所有浏览器中均能正常工作。 In that browser, only the wallpaper appears on the screen and it's not clipped with the text. 在该浏览器中,只有墙纸出现在屏幕上,并且没有被文本剪切。 Any suggestions? 有什么建议么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM