PIE CSS works in IE9 but not IE8

后端 未结 1 563
时光说笑
时光说笑 2021-01-21 12:19

For this project, I am using Tomcat 7 and have configured it to serve htc with content type of text/x-component



        
1条回答
  •  被撕碎了的回忆
    2021-01-21 12:52

    I too faced the same issue and following was the reason for my problem:

    • I used a wrong positioning for my DIV element.
    • I was targeting the wrong path in behavior.

    From your code, the problem seems to be in targeting the wrong path.
    behavior: url(/owmw/web/css/PIE.htc);

    FIX: Instead try to refer the PIE.htc file in css folder and make it look like behavior: url(PIE.htc);
    or
    use behavior: url(owmw/web/css/PIE.htc);

    Check out behavior property.

    I might be wrong, but this solved my issue.

    Even I tried using behavior: url(../owmw/web/css/PIE.htc); but not worked.

    From your comments, it seems you're using X-UA-Compatible as a fix and it works only through IE10 compatibility mode.

    !--  Force IE to use the latest version of its rendering engine -->  
    
    

    By telling IE to use the latest version of its rendering engine in your page. Incase if your user opens in IE8 browser? This will certainly fails.

    You can check this in MSDN Library.

    Hope you understand.

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