相关疑难解决方法(0)

内容网址不会在Firefox浏览器上显示图像

.googlePic{
    content: url('../../img/googlePlusIcon.PNG');
    margin-top: -6.5%;
    padding-right: 53px;
    float:right;
    height: 19px;

}
Run Code Online (Sandbox Code Playgroud)

这是googlePic我的css文件中的一个示例.它的工作原理并打印出漂亮的google chromesafari.但是,它不起作用firefox.Nth打印出来.请帮忙 :)

css firefox

31
推荐指数
4
解决办法
6万
查看次数

通过css替换img的内容

我有这个图片标签:

<img src="http://placehold.it/200x200"/>
Run Code Online (Sandbox Code Playgroud)

我需要通过css替换图像(因为我无法编辑html),所以我使用这个css:

img {
 content: url('http://lorempixel.com/200/200');
}
Run Code Online (Sandbox Code Playgroud)

它在chrome上工作得很好,但在firefox中没有工作,也就是说,任何想法为什么?

html css image css3

6
推荐指数
1
解决办法
5528
查看次数

标签 统计

css ×2

css3 ×1

firefox ×1

html ×1

image ×1