在IE8中使用CSS3Pie htc作为border-radius

Ada*_*son 10 css css3 html-components css3pie

我正在使用CSS3Pie htc文件border-radius在IE8中启用,但我没有任何效果.我的CSS是:

button {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    behavior: url(PIE.htc);
}
Run Code Online (Sandbox Code Playgroud)

我把PIE.htc放在公共根目录中(就像在CSS3PIE演示页面上所做的那样),尝试使用相对uri和绝对uri在同一个文件夹中.

演示正在进行中; 只是不是我的代码!

谢谢,亚当

Dan*_*ner 29

尝试添加

position:relative;
z-index: 0;
Run Code Online (Sandbox Code Playgroud)

正如这里建议的那样http://css3pie.com/forum/viewtopic.php?f=3&t=10

这个问题类似于这里发布的问题:

CSS3 PIE - 给IE边界半径支持不起作用?