2012-12-28 01:53:27 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>List tests</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function setUp() {
|
|
|
|
var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
|
2017-08-30 17:20:42 +03:00
|
|
|
for (var i = 1;i<=15;i++){
|
2012-12-28 01:53:27 +04:00
|
|
|
$('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[4]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#dynamic{
|
|
|
|
list-style-type:decimal;
|
2017-08-11 17:22:39 +03:00
|
|
|
list-style-position: outside;
|
2012-12-28 01:53:27 +04:00
|
|
|
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{
|
|
|
|
width:100px;
|
|
|
|
margin:0;
|
|
|
|
}
|
|
|
|
ol{
|
|
|
|
margin:0;
|
2017-08-10 18:26:22 +03:00
|
|
|
}
|
|
|
|
body {
|
|
|
|
font-family: Arial;
|
2012-12-28 01:53:27 +04:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<ol id="dynamic"></ol>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|