forked from niklasvh/html2canvas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lists.html
87 lines (70 loc) · 2.34 KB
/
lists.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!--
* @author Niklas von Hertzen <niklas at hertzen.com>
* @created 16.7.2011
* @website http://hertzen.com
-->
<!DOCTYPE html>
<html>
<head>
<title>List tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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() {
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
for (var i = 1;i<=100;i++){
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[Math.round(Math.random()*supportedTypes.length)]));
}
$('body').html2canvas();
});
</script>
<style>
#dynamic{
list-style-type:decimal;
list-style-position: inside;
font-size:20px;
line-height:50px;
}
.small{
font-size:14px;
}
.medium{
font-size:18px;
}
.large{
font-size:24px;
}
div{
float:left;
}
h2 {
clear:both;
}
li{
border:1px solid black;
width:100px;
margin:0;
}
ol{
margin:0;
}
</style>
</head>
<body>
<ul>
<li>First</li>
<li style="list-style-position:inside; ">Second</li>
<li>Third</li>
</ul>
<ol>
<li>First</li>
<li style="list-style-position:inside; ">Second<br />new line</li>
<li style="list-style-position:inside; "></li>
<li style="list-style-position:outside;">Third</li>
</ol>
<ol id="dynamic">
</ol>
</body>
</html>