Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
css内容:不在firefox中显示_Css_Wordpress - Fatal编程技术网

css内容:不在firefox中显示

css内容:不在firefox中显示,css,wordpress,Css,Wordpress,我正在尝试css一个网站,有woocommerce运行,我想用一个图像来取代销售徽章。我当前的css .product .onsale { content: url(https://..../uploads/2017/01/badge-cookie-month.gif) !important; margin-right: 0; border-radius:0; top: 0; left: 0; padding:0; max-width:30%; } 除了Firefox之外,它可以在任何东西上工

我正在尝试css一个网站,有woocommerce运行,我想用一个图像来取代销售徽章。我当前的css

.product .onsale {
content: url(https://..../uploads/2017/01/badge-cookie-month.gif) !important;
margin-right: 0;
border-radius:0;
top: 0;
left: 0;
padding:0;
max-width:30%;
}

除了Firefox之外,它可以在任何东西上工作。任何实现这一点的方法

你也应该发布现有的CSS和相关HTML,或者更好的是,让JS摆弄演示所有内容的示例。@MichaelEdelstone建议在SO帖子中包含所有相关代码-除非绝对必要,否则不要链接到codepen/JSFIDLE等第三方。如果第三方网站发生了什么事情,或者他们的URL发生了变化,或者其他什么,那么在SO帖子中对他们的引用将不起作用。这里有。你不能那样使用
内容。URL也无效(除非您故意删除了域部分)。域部分已被删除。上次我发帖子时,有人说要删除它。