2013-08-15 20:25:52 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>body text and bgcolor above children with negative z-index</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
<style type="text/css">
|
|
|
|
* {margin:0;padding:0;}
|
|
|
|
html {background-color: gray;}
|
|
|
|
body {
|
|
|
|
background-color: green;
|
|
|
|
}
|
|
|
|
#div1 {
|
|
|
|
background-color:cyan;
|
|
|
|
width:200px;
|
|
|
|
height:200px;
|
|
|
|
z-index:-1;
|
|
|
|
position:absolute;
|
|
|
|
top:0; left:0;
|
|
|
|
}
|
2017-08-09 06:52:42 +03:00
|
|
|
body {
|
|
|
|
font-family: Arial;
|
|
|
|
}
|
2013-08-15 20:25:52 +04:00
|
|
|
</style></head>
|
|
|
|
|
|
|
|
<body>body
|
|
|
|
<div id="div1"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|