2011-07-18 14:12:12 +04:00
|
|
|
<!--
|
|
|
|
* @author Niklas von Hertzen <niklas at hertzen.com>
|
|
|
|
* @created 15.7.2011
|
|
|
|
* @website http://hertzen.com
|
|
|
|
-->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2011-09-12 22:35:37 +04:00
|
|
|
<title>border tests</title>
|
2011-07-18 14:12:12 +04:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<link href="#" type="text/css" rel="stylesheet">
|
2011-09-12 22:35:37 +04:00
|
|
|
<script type="text/javascript" src="../external/flashcanvas/flashcanvas.js"></script>
|
2011-07-18 14:12:12 +04:00
|
|
|
<script type="text/javascript" src="../external/jquery-1.6.2.min.js"></script>
|
|
|
|
<script type="text/javascript" src="../build/html2canvas.js"></script>
|
|
|
|
<script type="text/javascript" src="../build/jquery.plugin.html2canvas.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(window).ready(function() {
|
|
|
|
|
|
|
|
$('body').html2canvas({
|
|
|
|
logging:true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
div { font: 12px Arial; }
|
|
|
|
|
|
|
|
span.bold { font-weight: bold; }
|
|
|
|
|
|
|
|
#div2 { z-index: 2; }
|
|
|
|
#div3 { z-index: 1; }
|
|
|
|
#div4 { z-index: 10; }
|
|
|
|
|
|
|
|
#div1,#div3 {
|
|
|
|
height: 80px;
|
|
|
|
position: relative;
|
2011-09-12 22:35:37 +04:00
|
|
|
border: 23px double #669966;
|
2011-07-18 14:12:12 +04:00
|
|
|
background-color: #ccffcc;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#div2 {
|
|
|
|
opacity: 0.8;
|
|
|
|
position: absolute;
|
|
|
|
width: 150px;
|
2011-09-12 22:35:37 +04:00
|
|
|
height: 201px;
|
2011-07-18 14:12:12 +04:00
|
|
|
top: 20px;
|
|
|
|
left: 170px;
|
2011-09-12 22:35:37 +04:00
|
|
|
border: 20px dotted #990000;
|
2011-07-18 14:12:12 +04:00
|
|
|
background-color: #ffdddd;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#div4 {
|
|
|
|
opacity: 0.8;
|
|
|
|
position: absolute;
|
|
|
|
width: 200px;
|
|
|
|
height: 70px;
|
|
|
|
top: 65px;
|
|
|
|
left: 50px;
|
2011-09-12 22:35:37 +04:00
|
|
|
border: 15px dashed #000099;
|
2011-07-18 14:12:12 +04:00
|
|
|
background-color: #ddddff;
|
|
|
|
text-align: left;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#div5{
|
2011-09-12 22:35:37 +04:00
|
|
|
border: 15px dashed #669966;
|
2011-07-18 14:12:12 +04:00
|
|
|
background-color: #ccffcc;
|
|
|
|
padding-left: 5px;
|
|
|
|
position:relative;
|
|
|
|
margin-bottom:-15px;
|
|
|
|
height:50px;
|
|
|
|
margin-top:10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#div6{
|
|
|
|
border: 1px dashed #000099;
|
|
|
|
background-color: #ddddff;
|
|
|
|
text-align: left;
|
|
|
|
padding-left: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style></head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<div id="div1">
|
|
|
|
<br /><span class="bold">DIV #1</span>
|
|
|
|
<br />position: relative;
|
|
|
|
<div id="div2">
|
|
|
|
<br /><span class="bold">DIV #2</span>
|
|
|
|
<br />position: absolute;
|
|
|
|
<br />z-index: 2;
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2011-09-12 22:35:37 +04:00
|
|
|
<div id="div3" style="background-image:url(image.jpg)">
|
2011-07-18 14:12:12 +04:00
|
|
|
<br /><span class="bold">DIV #3</span>
|
|
|
|
<br />position: relative;
|
|
|
|
<br />z-index: 1;
|
|
|
|
<div id="div4">
|
|
|
|
<br /><span class="bold">DIV #4</span>
|
|
|
|
<br />position: absolute;
|
|
|
|
<br />z-index: 10;
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="div5"><br />DIV #5<br />position:relative;<br /></div>
|
|
|
|
|
|
|
|
<div id ="div6"><br />DIV #6<br />position:static;<br /></div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|