Css3pie: CSS behavioral property allows relative URLs?

I have a CSS file using a CSS3PIE behavioral script, so IE8 will support my files, however I was wondering if there is a way to make a behavioral URL relative to the CSS file instead of the relation to the HTML file, Is there a way to do this?

+5
source share
3 answers

You can use the path with the previous slash (from the domain root), similar to this:

behavior: url(/css/PIE.htc);

which should work as expected.

Or you can use the PIE.js version: http://css3pie.com/documentation/pie-js/

JS - PIE.js ..

, PIE.js. .

+5

- . , , .

, , CSS.

.NET:

<!--[if lt IE 7]>
    <style>
        .foo
        {
            behavior: url(<%= ResolveUrl("~/") %>/js/libs/PIE.htc)
        }
    </style>
<![endif]-->
+1
0

All Articles