我正在尝试使用PIE.htc,这是一个脚本,希望可以让我在 IE6-8 中使用 CSS3 功能。我也在使用 Cakephp(我越来越喜欢它了)
根据说明,我只需将 PIE.htc 文件粘贴到任何我想要的位置,然后添加behavior: url(path/to/PIE.htc);
到 CSS 中。所以我有:
input[type=text]{
width:348px;
height:30px;
border:1px solid #ddd;
padding:3px;
background:url(../img/formfieldbg.gif) repeat-x;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
vertical-align:top;
behavior: url(path/to/PIE.htc);}
它还说: 注意:此路径是相对于正在查看的 HTML 文件,而不是调用它的 CSS 文件。
我正在使用 Cakephp,无论我为路径放什么,无论我将 PIE.htc 文件放在哪里,我都无法让它工作!当我在 IE6 中查看它时,我的输入仍然没有像在 FF 中那样可爱的圆角。