where do I put the PIE.htc file (for making IE work with CSS3) when I'm using cakephp

后端 未结 4 953
孤街浪徒
孤街浪徒 2021-01-02 02:32

I\'m trying to use PIE.htc, which is a script which hopefully will allow me to use CSS3 features in IE6-8. I\'m also using Cakephp (which I\'m growing to love)

Accor

4条回答
  •  囚心锁ツ
    2021-01-02 02:46

    Try using an absolute path:

    behavior: url(/path/to/PIE.htc);
    

    Note the leading forward slash. This way, no matter what the current page is, the path to the .htc file will remain the same.

    A full URL will work too:

    behavior: url(//example.com/path/to/PIE.htc);
    

    If you do use a full url, use a protocol relative url so you don't get insecure content warnings when switching to https.

    A lot of elements need position:relative or zoom:1 when using PIE in order to behave in IE, make sure you check the known issues page and play around until you get it to work.

提交回复
热议问题