bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
12.4.2
by Adam Ringhede
Adds PIE for CSS3 compatability issues with IE |
1 |
<?php
|
2 |
/*
|
|
3 |
This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
|
|
4 |
correct content-type, so that IE will recognize it as a behavior. Simply specify the
|
|
5 |
behavior property to fetch this .php file instead of the .htc directly:
|
|
6 |
||
7 |
.myElement {
|
|
8 |
[ ...css3 properties... ]
|
|
9 |
behavior: url(PIE.php);
|
|
10 |
}
|
|
11 |
||
12 |
This is only necessary when the web server is not configured to serve .htc files with
|
|
13 |
the text/x-component content-type, and cannot easily be configured to do so (as is the
|
|
14 |
case with some shared hosting providers).
|
|
15 |
*/
|
|
16 |
||
17 |
header( 'Content-type: text/x-component' ); |
|
18 |
include( 'PIE.htc' ); |
|
19 |
?>
|