在IE8中使用CSS3Pie htc作为border-radius [英] Using CSS3Pie htc for border-radius in IE8

查看:151
本文介绍了在IE8中使用CSS3Pie htc作为border-radius的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 CSS3Pie htc文件启用 border-radius 在IE8,但我没有效果。我的CSS是:

I'm using the CSS3Pie htc file to enable border-radius in IE8, but I'm getting no effect. My CSS is:

button {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    behavior: url(PIE.htc);
}

我把PIE.htc放在公共根CSS3PIE演示页),尝试在同一个文件夹中,使用相对uri和绝对uri。

I've put PIE.htc in the public root (as is done on the CSS3PIE demo page), having tried in the same folder, using a relative uri and an absolute uri.

演示正在工作;只是不是我的代码!

The demos are working; just not my code!

感谢,Adam

推荐答案

position:relative;
z-index: 0;

如下所示 http://css3pie.com/forum/viewtopic.php?f=3&t=10

此问题类似于此处发布的问题:

This question is similar to the one posted here:

CSS3 PIE - 使IE边界半径支持不工作?

这篇关于在IE8中使用CSS3Pie htc作为border-radius的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆