2013-08-05 20:09:31 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>z-index tests #6</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
<style type="text/css">
|
|
|
|
div {
|
|
|
|
width: 250px;
|
|
|
|
height: 70px;
|
|
|
|
position: relative;
|
|
|
|
border: 2px solid #669966;
|
|
|
|
background-color: #ccffcc;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
div.z0 {
|
|
|
|
z-index: 0;
|
|
|
|
top:105px;
|
|
|
|
left:20px;
|
|
|
|
background-color: #ffdddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.z1 {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2017-08-09 06:52:42 +03:00
|
|
|
body {
|
|
|
|
font-family: Arial;
|
|
|
|
}
|
2013-08-05 20:09:31 +04:00
|
|
|
</style></head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="z0"><span>z-index:0</span></div>
|
|
|
|
<div>default z-index</div>
|
|
|
|
<div class="z1">z-index:1</div>
|
|
|
|
</body>
|
|
|
|
</html>
|