【问题标题】:Don't understand why Firefox is displaying white background behind my text不明白为什么 Firefox 在我的文本后面显示白色背景
【发布时间】:2014-08-07 20:26:30
【问题描述】:

Firefox 的更改破坏了我的一些背景/边框图像。有关详细信息,请参阅此问题:CSS - New Firefox-release doesn't show Border-Image anymore。当我通过添加border-style: solid 解决此问题时,我的文本现在在其后面显示白色/灰色背景。知道为什么会发生这种情况。在 Chrome 上查看我的图片(它的外观),然后在 Firefox 上查看。

铬:

火狐:

这里是 jsfiddle 链接:http://jsfiddle.net/nirodhasoftware/offuhxao/1/

【问题讨论】:

  • 刚刚添加了一个,@SureshPonnukalai。

标签: firefox css


【解决方案1】:

您还需要绘制背景。 从伪或元素本身:2 个示例来调整您的需求。

pseudo:

background:#5099D6;
background-clip:padding-box;

element:

background:url(http://www.rwe-uk.com/static/ichat_with_css3/speech_bubble_left_2.png) center / 300% 150%;
background-clip:content-box;

【讨论】:

  • 非常感谢。那工作得很好。为什么 Firefox 需要此修复程序?以前不习惯。
  • @Doug,正如你所注意到的,这是 Firefox 的故障/错误,你只能在需要背景时修补它
猜你喜欢
  • 1970-01-01
  • 2013-11-27
  • 2015-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多