CSS3 and PIE not working in IE 8

后端 未结 6 1346
梦谈多话
梦谈多话 2020-12-28 18:07

Im trying to demo CSS3PIE and it wont work in IE at all.

HTML:

 

         


        
相关标签:
6条回答
  • 2020-12-28 18:24

    Try adding

    position:relative;
    z-index: 0;
    

    as suggested here http://css3pie.com/forum/viewtopic.php?f=3&t=10

    This question is similar to the one posted here: CSS3 PIE - Giving IE border-radius support not working?

    0 讨论(0)
  • 2020-12-28 18:25

    Try to clear cache in your browser. Especialy when you switch between compatibility modes. It really helps

    0 讨论(0)
  • 2020-12-28 18:26

    CSS3 PIE - Giving IE border-radius support not working?

    The PIE.htc requests should respond with the mime type "text/x-component" - or IE won't touch the behaviour.

    0 讨论(0)
  • 2020-12-28 18:26

    Make sure you have the latest beta release. If the HTC file still causes issues, try the JS implementation.

    0 讨论(0)
  • 2020-12-28 18:31

    adding: AddType text/x-component .htc - to the .htaccess file worked like a charm for me.

    The shorthand CSS property let's you control what corners to round or not.

    border-radius: 0 15px 15px 0;/*(top-left, top-right, bottom-right, bottom-left). */

    0 讨论(0)
  • 2020-12-28 18:43

    The behavior location should be relative to your HTML file, not your CSS like any other declaration using url(). So assuming your index.html and PIE.htc is in root and your CSS is inside a 'css' folder, you should go like this:

    background-image: url(../images/example.jpg);
    behavior: url(PIE.htc);
    

    Also, try adding a .htaccess file with the following content in the same location as the PIE.htc file:

    AddType text/x-component .htc
    

    Hope this helps.

    0 讨论(0)
提交回复
热议问题