【发布时间】:2011-10-23 17:49:22
【问题描述】:
我正在尝试使用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 中那样可爱的圆角。
【问题讨论】:
标签: internet-explorer css css3pie