a691b6fc6b7d1de2e4cc3caa9f03ec77cb4de14e.svn-base 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Text-decoration:underline 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. $('body').empty();
  10. $.each(['arial','verdana','tahoma','courier new'],function(i,e){
  11. var div = $('<div />').css('font-family',e).appendTo('body');
  12. for(var i=0;i<=10;i++){
  13. $('<div />').text('Testing texts').css('margin-top',1).css('border','1px solid black').css('font-size',(16+i*6)).appendTo(div);
  14. }
  15. });
  16. }
  17. </script>
  18. <style>
  19. .small{
  20. font-size:14px;
  21. }
  22. .medium{
  23. font-size:18px;
  24. }
  25. .large{
  26. font-size:24px;
  27. }
  28. div{
  29. text-decoration:underline;
  30. line-height:40px;
  31. }
  32. h2 {
  33. clear:both;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. Creating content through JavaScript
  39. </body>
  40. </html>