example01.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <style type="text/css">
  2. <!--
  3. table.morpion
  4. {
  5. border: dashed 1px #444444;
  6. }
  7. table.morpion td
  8. {
  9. font-size: 15pt;
  10. font-weight: bold;
  11. border: solid 1px #000000;
  12. padding: 1px;
  13. text-align: center;
  14. width: 25px;
  15. }
  16. table.morpion td.j1 { color: #0A0; }
  17. table.morpion td.j2 { color: #A00; }
  18. -->
  19. </style>
  20. <page style="font-size: 10pt">
  21. <span style="font-weight: bold; font-size: 20pt; color: #F00">Bonjour, voici quelques exemples</span><br>
  22. Bonjour, ceci est un test <b>de gras</b>, <i>d'italic</i>, <b><i>et des 2 ensembles</i></b>.<br>
  23. <br>
  24. <span style="background: red; color: white;">Ceci est un message important</span><br>
  25. <br>
  26. <small>Texte écrit avec small</small>, Texte écrit normalement, <big>Texte écrit avec big</big><br>
  27. <span style="font-size: 20px">A<sub>test d'<b>indice</b></sub> et N<sup>test d'<b>exposant</b></sup>,
  28. test<sub>test<sub>test</sub></sub>,
  29. test<sup>test<sup>test</sup></sup>,
  30. test<sub>test<sup>test</sup></sub>.
  31. </span><br>
  32. <br>
  33. <table align="center" style="border-radius: 6mm; border-top: solid 3mm #000077; border-right: solid 2mm #007700; border-bottom: solid 1mm #770000; border-left: solid 2mm #007777; background: #DDDDAA;" ><tr><td style="width: 100mm; height: 20mm; text-align: center; ">Coucou ! ceci est un border solid avec un radius !!! </td></tr></table>
  34. <br>
  35. <table align="center" style="border-radius: 6mm; border: none; background: #DDDDAA;" ><tr><td style="width: 100mm; height: 20mm; text-align: center; ">Coucou ! ceci est un background avec un radius !!! </td></tr></table>
  36. <br>
  37. <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: solid 4mm #000077; border-right: solid 3mm #007700; border-bottom: solid 2mm #770000; border-left: solid 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border solid</td></tr></table><br>
  38. <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: dotted 4mm #000077; border-right: dotted 3mm #007700; border-bottom: dotted 2mm #770000; border-left: dotted 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border dotted</td></tr></table><br>
  39. <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: dashed 4mm #000077; border-right: dashed 3mm #007700; border-bottom: dashed 2mm #770000; border-left: dashed 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border dashed</td></tr></table><br>
  40. <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: double 4mm #000077; border-right: double 3mm #007700; border-bottom: double 2mm #770000; border-left: double 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border double</td></tr></table><br>
  41. <?php $back = 'background-image: url(./res/off.png); background-position: left top; background-repeat: repeat; '; ?>
  42. <table style="background: #FFAAAA; color: #000022; border: 3px solid #555555;">
  43. <tr>
  44. <td style="width: 40mm; border: solid 1px #000000; <?php echo $back; ?>color: #003300">Case A1</td>
  45. <td style="width: 50mm; border: solid 1px #000000; <?php echo $back; ?>font-weight: bold;">Case A2</td>
  46. <td style="width: 60mm; border: solid 1px #000000; <?php echo $back; ?>font-size: 20px;">Case A3</td>
  47. </tr>
  48. <tr>
  49. <td style="border: solid 1px #000000; text-align: left; <?php echo $back; ?>vertical-align: top; ">Case B1</td>
  50. <td style="border: solid 1px #000000; text-align: center; <?php echo $back; ?>vertical-align: middle; height: 20mm">Case B2<hr style="color: #22AA22">test de hr</td>
  51. <td style="border: solid 1px #000000; text-align: right; <?php echo $back; ?>vertical-align: bottom; border-radius: 3mm; ">Case B3</td>
  52. </tr>
  53. </table>
  54. <br>
  55. <table style="border: solid 2px #550000; background: #000022 url(./res/logo.png) center center no-repeat; color: #FFFFFF;">
  56. <tr >
  57. <td style="border: solid 1px #AAAAAA;">Case A1<BR>avec tests diverses</td>
  58. <td style="border: solid 1px #AAAAAA;">Case A2</td>
  59. <td style="border: solid 1px #AAAAAA;">Case A3 classic</td>
  60. </tr>
  61. <tr>
  62. <td style="border: solid 1px #AAAAAA;">Case B1<br>toto</td>
  63. <td style="border: solid 1px #AAAAAA;background: #FF0000">Case B2</td>
  64. <td style="border: solid 1px #AAAAAA;">Case B3</td>
  65. </tr>
  66. </table>
  67. <br>
  68. <table class="morpion" cellspacing="5px">
  69. <tr>
  70. <td class="j1">X</td>
  71. <td class="j2">O</td>
  72. <td class="j1">X</td>
  73. </tr>
  74. <tr>
  75. <td class="j2">O</td>
  76. <td class="j1">X</td>
  77. <td ></td>
  78. </tr>
  79. <tr>
  80. <td class="j2">O</td>
  81. <td></td>
  82. <td class="j1">X</td>
  83. </tr>
  84. </table>
  85. <br>
  86. <table style="border: dotted 1mm #FFFFFF; background: #AAAAFF">
  87. <tr>
  88. <td style="width: 42mm; text-align: center;font-size: 5mm">
  89. Ceci est un test
  90. </td>
  91. </tr>
  92. </table>
  93. </page>