<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- leave DTD out of DOCTYPE to put IE6 in quirks mode --> <html> <head> <title>BG</title> <style type="text/css"> body { /* for IE; otherwise, BG isn't fully stretched */ margin: 0px; } #bg { position: fixed; margin: 0px; border: 0px; padding: 0px; left: 0px; top: 0px; width: 100%; height: 100%; overflow: hidden; z-index: 0; } #bg img { width: 100%; height: 100%; } #body { position: absolute; left: 0%; top: 0%; width: 98%; height:98%; padding: 0; z-index: 10; } li { margin-bottom: 2em; } </style> <!--[if IE]> <style type="text/css"> body { margin: 0px; overflow: hidden; } #body { padding: 1em; width: 100%; height:100%; overflow: auto; } </style> <![endif]--> </head> <body> <!-- img must be encased in div to keep proper image aspect ratio --> <div id="bg"><img src="a.jpg"></div> <div id="body"></div> </body> </html>
Plik "a.jpg" jest w tym samym katalogu.
Co jest źle zrobione? Dlaczego się nie wyświetla? Co zrobić, aby działało jak należy? Może to kwestia CHModów...?