Firefox 没有实现完整的样式表
我在使用 Firefox 时遇到了一些问题。我已经实现了以下规则:
h1.entry-title {
font-family: "meddon"; color:white;
padding: 10px 0 25px 0;
margin: 0px;
background-image: url(images/backgrounds/h1.png) no-repeat bottom 0px;
}
但在 Firefox 中它没有完全显示。使用 Firebug,它显示了这种风格的不完整再现。呈现以下内容:
h1.entry-title {
color: white;
font-family: "meddon";
margin: 0;
padding: 10px 0 25px;
}
不确定为什么其他声明没有显示,即背景图像不存在。另请注意,填充应包含 4 个数字,而不是 3 个。有什么想法吗?
I'm having a bit of an issue with Firefox. I have implemented the following rule:
h1.entry-title {
font-family: "meddon"; color:white;
padding: 10px 0 25px 0;
margin: 0px;
background-image: url(images/backgrounds/h1.png) no-repeat bottom 0px;
}
Yet in Firefox it doesn't show fully. Using Firebug, it shows an incomplete rendition of this style. The following is rendered:
h1.entry-title {
color: white;
font-family: "meddon";
margin: 0;
padding: 10px 0 25px;
}
Not sure why the other declarations are not showing up, ie, the background image is not there. Also note that padding should have 4 numbers not three. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
background-image
仅采用图像源,而不是参数列表。您正在寻找简单的背景
这是背景属性的链接
至于填充,3 个参数语法翻译为 top、right &左、下。四数字语法翻译为上、右、下、左。所以它在做同样的事情。
background-image
only takes an image source, not a list of parameters. You're looking for just plainbackground
Here's a link to the background property
As for the padding, the 3 parameter syntax translates to top, right & left, bottom. The four number syntax translates to top, right, bottom, left. So it's doing the same thing.
试试这个
Try This
由于您使用了无效的
background-image
值,因此样式将不会显示。至于填充,firebug 尽可能使用缩写:
because you used an invalid
background-image
value, the style will not show up.As for the padding, firebug uses abbreviations whenever possible: