Имеющий Что Сказать
Зарегистрирован: 14 September 2007
Сообщения: 61
Примеры кода: 0
|
Re: Размер фонового рисунка под размер страницы |
20 March 2008 20:31 |
|
|
|
|
Прошу прощения, забыл просмотреть пост... )))) если актуально, то вот так:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Мой растянутый бэкграунд</title>
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0; color: #fff;}
a { color: #fff; }
#bg {position:fixed; top:0; left:0; width:100%; height:100%;}
#content {position:static; z-index:1;}
</style>
<!--[IF IE 7]>
<style type="text/css">
html {overflow-y:hidden;}
body {overflow-y:auto;}
#bg {position:absolute; z-index:-1;}
#content {position:static;}
</style>
<![ENDIF]-->
<!--[IF IE 6]>
<style type="text/css">
html {overflow-y:hidden;}
body {overflow-y:auto;}
#bg {position:absolute; z-index:-1;}
#content {position:static;}
</style>
<![ENDIF]-->
</head>
<body>
<img src="c:\\robb.jpg" alt="background" id="bg" />
</body>
</html>
|
|