class.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <style type="text/css">
  2. .mui-preview-image.mui-fullscreen {
  3. position: fixed;
  4. z-index: 20;
  5. background-color: #000;
  6. }
  7. .mui-preview-header,
  8. .mui-preview-footer {
  9. position: absolute;
  10. width: 100%;
  11. left: 0;
  12. z-index: 10;
  13. }
  14. .mui-preview-header {
  15. height: 44px;
  16. top: 0;
  17. }
  18. .mui-preview-footer {
  19. height: 50px;
  20. bottom: 0px;
  21. }
  22. .mui-preview-header .mui-preview-indicator {
  23. display: block;
  24. line-height: 25px;
  25. color: #fff;
  26. text-align: center;
  27. margin: 15px auto 4;
  28. width: 70px;
  29. background-color: rgba(0, 0, 0, 0.4);
  30. border-radius: 12px;
  31. font-size: 16px;
  32. }
  33. .mui-preview-image {
  34. display: none;
  35. -webkit-animation-duration: 0.5s;
  36. animation-duration: 0.5s;
  37. -webkit-animation-fill-mode: both;
  38. animation-fill-mode: both;
  39. }
  40. .mui-preview-image.mui-preview-in {
  41. -webkit-animation-name: fadeIn;
  42. animation-name: fadeIn;
  43. }
  44. .mui-preview-image.mui-preview-out {
  45. background: none;
  46. -webkit-animation-name: fadeOut;
  47. animation-name: fadeOut;
  48. }
  49. .mui-preview-image.mui-preview-out .mui-preview-header,
  50. .mui-preview-image.mui-preview-out .mui-preview-footer {
  51. display: none;
  52. }
  53. .mui-zoom-scroller {
  54. position: absolute;
  55. display: -webkit-box;
  56. display: -webkit-flex;
  57. display: flex;
  58. -webkit-box-align: center;
  59. -webkit-align-items: center;
  60. align-items: center;
  61. -webkit-box-pack: center;
  62. -webkit-justify-content: center;
  63. justify-content: center;
  64. left: 0;
  65. right: 0;
  66. bottom: 0;
  67. top: 0;
  68. width: 100%;
  69. height: 100%;
  70. margin: 0;
  71. -webkit-backface-visibility: hidden;
  72. }
  73. .mui-zoom {
  74. -webkit-transform-style: preserve-3d;
  75. transform-style: preserve-3d;
  76. }
  77. .mui-slider .mui-slider-group .mui-slider-item img {
  78. width: auto;
  79. height: auto;
  80. max-width: 100%;
  81. max-height: 100%;
  82. }
  83. .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
  84. width: 100%;
  85. }
  86. .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
  87. display: inline-table;
  88. }
  89. .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
  90. display: table-cell;
  91. vertical-align: middle;
  92. }
  93. .mui-preview-loading {
  94. position: absolute;
  95. width: 100%;
  96. height: 100%;
  97. top: 0;
  98. left: 0;
  99. display: none;
  100. }
  101. .mui-preview-loading.mui-active {
  102. display: block;
  103. }
  104. .mui-preview-loading .mui-spinner-white {
  105. position: absolute;
  106. top: 50%;
  107. left: 50%;
  108. margin-left: -25px;
  109. margin-top: -25px;
  110. height: 50px;
  111. width: 50px;
  112. }
  113. .mui-preview-image img.mui-transitioning {
  114. -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
  115. transition: transform 0.5s ease, opacity 0.5s ease;
  116. }
  117. @-webkit-keyframes fadeIn {
  118. 0% {
  119. opacity: 0;
  120. }
  121. 100% {
  122. opacity: 1;
  123. }
  124. }
  125. @keyframes fadeIn {
  126. 0% {
  127. opacity: 0;
  128. }
  129. 100% {
  130. opacity: 1;
  131. }
  132. }
  133. @-webkit-keyframes fadeOut {
  134. 0% {
  135. opacity: 1;
  136. }
  137. 100% {
  138. opacity: 0;
  139. }
  140. }
  141. @keyframes fadeOut {
  142. 0% {
  143. opacity: 1;
  144. }
  145. 100% {
  146. opacity: 0;
  147. }
  148. }
  149. p img {
  150. max-width: 100%;
  151. height: auto;
  152. }
  153. </style>
  154. <!--学习天地开始-->
  155. <div class="student-box">
  156. <div class="flow-box">
  157. <a onclick="window.location.href='/main/class?categoryId=3'" href="/main/class?categoryId=3" class="active"><img src="/images/glhs/flow1.png"><div>学员课堂</div></a>
  158. <a onclick="window.location.href='/main/achieve?categoryId=1'" href="/main/achieve?categoryId=1"><img src="/images/glhs/flow31.png"><div>学员作品</div></a>
  159. <a onclick="window.location.href='/main/hd?categoryId=2'" href="/main/hd?categoryId=2"><img src="/images/glhs/flow4.png"><div>学员花店</div></a>
  160. </div>
  161. <div class="list-box" name="studentImgList">
  162. <?php
  163. foreach($models as $info){
  164. ?>
  165. <div class="list">
  166. <div >
  167. <img src="/images/kt_grey.gif" data-original="<?php echo $info['mobileUrl']; ?>" class="lazy" data-preview-src="<?php echo $info['mobileUrl']; ?>" data-preview-group="1" />
  168. </div>
  169. </div>
  170. <?php
  171. }
  172. ?>
  173. </div>
  174. </div>
  175. <script>
  176. var categoryId = 3;
  177. </script>
  178. <script type="text/javascript" src="/js/main/student.js"></script>
  179. <script src="/js/mui.zoom.js"></script>
  180. <script src="/js/mui.previewimage.js"></script>
  181. <script type="text/javascript" charset="utf-8">
  182. mui.previewImage();
  183. </script>