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?
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. .
- . , , .
, , CSS.
.NET:
<!--[if lt IE 7]> <style> .foo { behavior: url(<%= ResolveUrl("~/") %>/js/libs/PIE.htc) } </style> <![endif]-->
, HTTPS HTTPS-, , : http://paulirish.com/2010/the-protocol-relative-url/
IE8, .