Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.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
Html 为什么赢了';t-moz过滤器:模糊(4px)在firefox中工作吗?_Html_Css_Firefox - Fatal编程技术网

Html 为什么赢了';t-moz过滤器:模糊(4px)在firefox中工作吗?

Html 为什么赢了';t-moz过滤器:模糊(4px)在firefox中工作吗?,html,css,firefox,Html,Css,Firefox,我在chrome上使用了模糊过滤器,效果很好,我尝试添加moz过滤器,这样它就可以在firefox中显示,而不会模糊 图像模糊的代码: .img-wrap:hover img { filter: blur(4px); -webkit-filter: blur(4px); -moz-filter: blur(4px); height: 150px; position: relative; width: 150px; } 干杯CSS过滤效果,您需要

我在chrome上使用了模糊过滤器,效果很好,我尝试添加moz过滤器,这样它就可以在firefox中显示,而不会模糊

图像模糊的代码:

.img-wrap:hover img {

    filter: blur(4px);
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    height: 150px;
    position: relative;
    width: 150px;
}
干杯

CSS过滤效果,您需要研究一下使用,有一个

HTML


错误控制台中是否报告了任何内容?您的选择器有效吗?您是否尝试过
-moz blur(4px)
<img src="yourImage.png" alt="" />
<svg:svg>
    <!-- Filter ID/Name -->
    <svg:filter id="blurFilter">
        <!-- Amount of Gaussian Blur that should be applied -->
        <svg:feGaussianBlur stdDeviation="0.9"/>
    </svg:filter>
</svg:svg>
img { filter:url(#blurFilter); }