Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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
使用CSS3从背景色过渡到背景图像_Css - Fatal编程技术网

使用CSS3从背景色过渡到背景图像

使用CSS3从背景色过渡到背景图像,css,Css,使用CSS3,是否可以从背景色淡入背景图像 我知道可以从一种颜色到另一种颜色或从一幅图像到另一幅图像进行淡入淡出,但您也可以从一种颜色到另一种颜色进行淡入淡出吗?从本机视图不可能,但您可以模拟它: 此图片为PNG,内部没有任何内容(甚至没有白色),大小与: body:hover { background-image: url('http://connexo.de/img/logos/CSS3_Logo.png'); } 我不太清楚您想要实现的背景色行为。 我只是把它还原成白色 body

使用CSS3,是否可以从背景色淡入背景图像


我知道可以从一种颜色到另一种颜色或从一幅图像到另一幅图像进行淡入淡出,但您也可以从一种颜色到另一种颜色进行淡入淡出吗?

从本机视图不可能,但您可以模拟它:

此图片为PNG,内部没有任何内容(甚至没有白色),大小与:

body:hover {
    background-image: url('http://connexo.de/img/logos/CSS3_Logo.png');
}
我不太清楚您想要实现的背景色行为。
我只是把它还原成白色

body:hover {
    background-image: url('http://connexo.de/img/logos/CSS3_Logo.png');
}