image de fond redimensionnable
Salut,
Cela te convient-il?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>image de fond redimensionnable</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
* {margin:0;padding:0;}
body {margin:10px;background:#000;color:#ddd;font-size:1em;font-family:Helvetica, Arial, sans-serif;}
#fond {width:100%;position:absolute;top:0;left:0;z-index:-1;}
</style>
</head>
<body>
<div id="contenu">Ceci est un contenu quelconque.</div>
<img id="fond" src="img/photo.jpeg" alt="" />
<script type="text/javascript">
<!--
// code javascript
//-->
</script>
</body>
</html> |