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');