mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
99 lines
3.4 KiB
HTML
99 lines
3.4 KiB
HTML
<!--
|
|
* @author Niklas von Hertzen <niklas at hertzen.com>
|
|
* @created 15.7.2011
|
|
* @website http://hertzen.com
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Background attribute tests</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<link href="#" type="text/css" rel="stylesheet">
|
|
<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>
|
|
|
|
.small div{
|
|
width:100px;
|
|
height:100px;
|
|
float:left;
|
|
margin:10px;
|
|
border:1px solid #000;
|
|
}
|
|
|
|
.medium div{
|
|
width:200px;
|
|
height:200px;
|
|
float:left;
|
|
margin:10px;
|
|
border:1px solid #000;
|
|
}
|
|
|
|
.small, .medium{
|
|
clear:both;
|
|
}
|
|
|
|
div{
|
|
display:block;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div class="medium">
|
|
<div style="background:url(image.jpg);"></div>
|
|
<div style="background:url(image.jpg) repeat-x;"></div>
|
|
<div style="background:url(image.jpg) repeat-y;"></div>
|
|
<div style="background:url(image.jpg) no-repeat;"></div>
|
|
</div>
|
|
<div class="small">
|
|
<div style="background:url(image.jpg);"></div>
|
|
<div style="background:url(image.jpg) repeat-x;"></div>
|
|
<div style="background:url(image.jpg) repeat-y;"></div>
|
|
<div style="background:url(image.jpg) no-repeat;"></div>
|
|
</div>
|
|
|
|
|
|
<div class="medium">
|
|
<div style="background:url(image.jpg) center center;"></div>
|
|
<div style="background:url(image.jpg) repeat-x center center;"></div>
|
|
<div style="background:url(image.jpg) repeat-y center center;"></div>
|
|
<div style="background:url(image.jpg) no-repeat center center;"></div>
|
|
</div>
|
|
|
|
|
|
<div class="small">
|
|
<div style="background:url(image.jpg) center center;"></div>
|
|
<div style="background:url(image.jpg) repeat-x center center;"></div>
|
|
<div style="background:url(image.jpg) repeat-y center center;"></div>
|
|
<div style="background:url(image.jpg) no-repeat center center;"></div>
|
|
</div>
|
|
|
|
<div class="medium">
|
|
<div style="background:url(image.jpg) 50px 50px;"></div>
|
|
<div style="background:url(image.jpg) repeat-x 50px 50px;"></div>
|
|
<div style="background:url(image.jpg) repeat-y 50px 50px;"></div>
|
|
<div style="background:url(image.jpg) no-repeat 50px 50px;"></div>
|
|
</div>
|
|
|
|
<div class="medium">
|
|
|
|
<div style="background:url(image.jpg) no-repeat -15% 25px;"></div>
|
|
<div style="background-image:url(image.jpg), url(image2.jpg); background-repeat: repeat-x; background-position: 50px 50px, 100px 100px;"></div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|