mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
38 lines
696 B
HTML
38 lines
696 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>crop test</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<script>
|
||
|
h2cOptions = {
|
||
|
x: 250,
|
||
|
y: 250,
|
||
|
width: 100,
|
||
|
height: 100
|
||
|
};
|
||
|
</script>
|
||
|
<script type="text/javascript" src="../../test.js"></script>
|
||
|
<style>
|
||
|
#div1 {
|
||
|
position: absolute;
|
||
|
left: 250px;
|
||
|
top: 250px;
|
||
|
width: 100px;
|
||
|
height: 100px;
|
||
|
background: green;
|
||
|
}
|
||
|
|
||
|
body, html {
|
||
|
background: red;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div id="div1">
|
||
|
great success
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|