forked from lojjic/PIE
/
png-fix.html
50 lines (39 loc) · 1.07 KB
/
png-fix.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>-pie-png-fix test</title>
<style>
body {
background: url(background2.gif);
}
p {
background: #FFF;
}
#test1 {
position: relative;
background: url(icon-ie.png);
padding: 2em;
-pie-png-fix: true;
behavior: url(../build/PIE.htc);
margin-bottom: 5em;
}
#test2 img {
position: relative;
-pie-png-fix: true;
behavior: url(../build/PIE.htc);
}
</style>
</head>
<body>
<div id="test1" class="test">
<p>In IE6, this box's background image should be transparent through to the body, not gray.</p>
</div>
<div id="test2">
<p>These <img> elements should also be transparent in IE6.</p>
<img src="icon-ie.png" />
<img src="icon-ie.png" width="128" height="128" />
<img src="icon-ie.png" width="640" height="128" />
<img src="icon-ie.png" width="64" height="256" />
</div>
</body>
</html>