7e734b4bb6431bd60b3b72d25106565a78d9b1e0.svn-base 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>List tests</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <script type="text/javascript" src="../../test.js"></script>
  7. <script type="text/javascript">
  8. function setUp() {
  9. var supportedTypes = ["decimal","decimal-leading-zero","upper-roman","lower-roman","lower-alpha","upper-alpha"];
  10. for (var i = 1;i<=100;i++){
  11. $('#dynamic').append($('<li />').text(i).css('list-style-type',supportedTypes[0]));
  12. }
  13. }
  14. </script>
  15. <style>
  16. #dynamic{
  17. list-style-type:decimal;
  18. list-style-position: inside;
  19. font-size:20px;
  20. line-height:50px;
  21. }
  22. .small{
  23. font-size:14px;
  24. }
  25. .medium{
  26. font-size:18px;
  27. }
  28. .large{
  29. font-size:24px;
  30. }
  31. div{
  32. float:left;
  33. }
  34. h2 {
  35. clear:both;
  36. }
  37. li{
  38. border:1px solid black;
  39. width:100px;
  40. margin:0;
  41. }
  42. ol{
  43. margin:0;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <ol id="dynamic"></ol>
  49. </body>
  50. </html>