背景颜色隐藏边界半径ie8

时间:2016-04-07 14:44:13

标签: css internet-explorer css3pie

我正在尝试用ie8做border-radius 这是我的代码:

position: relative;
    border-radius: 8px;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#CCC', endColorstr='#C!C!C!', GradientType=0 );
    behavior: url(css/PIE.htc);

border-radius在这里,但不幸的是它在背景颜色下 我错过了什么?

1 个答案:

答案 0 :(得分:1)

您需要使用-pie-background,而不是旧的IE filter渐变。

来自PIE网站

background: linear-gradient(#EEFF99, #66EE33);
-pie-background: linear-gradient(#EEFF99, #66EE33);
behavior: url(/pie/PIE.htc);