article2.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>员工学习</title>
  9. <link rel="stylesheet" href="/static/study/css/style.css" />
  10. <link rel="stylesheet" href="/static/study/layer/need/layer.css" />
  11. <style>
  12. .content{
  13. background: #fff;
  14. padding: 20px;
  15. }
  16. .video{
  17. width: 100%;
  18. height: 100%;
  19. margin-top: 20%;
  20. }
  21. .audio{
  22. width: 100%;
  23. margin-top: 20%;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="container">
  29. {if ($info['content'])}
  30. <div class="content">
  31. {$info.content | raw}
  32. </div>
  33. {/if}
  34. {if ($info['video'])}
  35. <div class="video">
  36. <video width="100%" height="240" controls autoplay >
  37. <source src="{$info['video']}" type="video/mp4">
  38. </video>
  39. </div>
  40. {/if}
  41. {if ($info['audio'])}
  42. <div class="audio">
  43. <object height="100" width="100%" data="{$info['audio']}"></object>
  44. </div>
  45. {/if}
  46. </div>
  47. <script type="text/javascript">
  48. </script>
  49. </body>
  50. </html>