Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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 在ie11中重新创建webkit box_Css_Internet Explorer - Fatal编程技术网

Css 在ie11中重新创建webkit box

Css 在ie11中重新创建webkit box,css,internet-explorer,Css,Internet Explorer,在阅读了堆栈上的一些问题后,我得到了以下代码: -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from( transparent ), color-stop(0.7, transparent), to( rgba(50,50,50,0.7) ) ); 从这个答案中: 但这会引发解析错误RuntimeError:error求值函数alpha:un

在阅读了堆栈上的一些问题后,我得到了以下代码:

-webkit-box-reflect:
    below 0px 
    -webkit-gradient(linear, left top, left bottom, 
        from( transparent ), color-stop(0.7, transparent), to( rgba(50,50,50,0.7) ) 
);
从这个答案中:

但这会引发解析错误
RuntimeError:error求值函数
alpha
:undefined不是函数

在这方面:
过滤器:alpha(不透明度=20')

您实际上不需要使用
过滤器:alpha(不透明度=20')
如果您使用的是IE11,则显示您已有的
不透明度设置

使用 专有“过滤器”属性

这同样适用于
过滤器:flipv这是不必要的,因为您有
transform:scaleY(-1)

顺便说一下,这取决于如果使用的是预处理器(运行时错误建议),并且,您也可以考虑删除<代码> <代码>围绕alpha值,离开:


过滤器:alpha(不透明度=20)

正如SW4已经说过的,IE11将为IE8-中使用的非标准css抛出这些错误。丢失
过滤器:()
行,如果要支持旧的IEs,请将它们作为条件样式表包含。
transform: scaleY(-1); 
filter: flipv; 
opacity:0.20; 
filter: alpha(opacity='20');