d4a11483c3c3bf323e6a3bd281cef595fababf04.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Rotation transform tests</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <script type="text/javascript" src="../../test.js"></script>
  7. <style>
  8. .container {
  9. position: relative;
  10. }
  11. .image1 {
  12. position: absolute;
  13. left: 100px;
  14. -webkit-transform: rotate(-45deg); /* Chrome, Safari 3.1+ */
  15. -moz-transform: rotate(-45deg); /* Firefox 3.5-15 */
  16. -ms-transform: rotate(-45deg); /* IE 9 */
  17. -o-transform: rotate(-45deg); /* Opera 10.50-12.00 */
  18. transform:rotate(-45deg);
  19. }
  20. .image2 {
  21. position: absolute;
  22. left: 634px;
  23. -webkit-transform: rotate(90deg); /* Chrome, Safari 3.1+ */
  24. -moz-transform: rotate(90deg); /* Firefox 3.5-15 */
  25. -ms-transform: rotate(90deg); /* IE 9 */
  26. -o-transform: rotate(90deg); /* Opera 10.50-12.00 */
  27. transform:rotate(90deg);
  28. }
  29. .image3 {
  30. position: absolute;
  31. top: 250px;
  32. left: 100px;
  33. -webkit-transform: rotate(45deg); /* Chrome, Safari 3.1+ */
  34. -moz-transform: rotate(45deg); /* Firefox 3.5-15 */
  35. -ms-transform: rotate(45deg); /* IE 9 */
  36. -o-transform: rotate(45deg); /* Opera 10.50-12.00 */
  37. transform:rotate(45deg);
  38. }
  39. </style
  40. </head>
  41. <body>
  42. <div class="container">
  43. <div class="image1">
  44. <img src="../../assets/image.jpg" style="width: 200px; height: 200px;">
  45. </div>
  46. <div class="image2">
  47. <img src="../../assets/image2.jpg" style="width: 50px; height: 200px;">
  48. </div>
  49. <div class="image3">
  50. <img src="../../assets/image.jpg" style="width: 100px; height: 200px;">
  51. </div>
  52. </div>
  53. </body>
  54. </html>