Browse Source

add video download button

master
filesite 4 months ago
parent
commit
0f9aa98160
  1. 6
      themes/beauty/views/site/player.php
  2. 2
      www/css/beauty.css

6
themes/beauty/views/site/player.php

@ -35,4 +35,10 @@
id="myvideo"> id="myvideo">
<source src="<?php echo $viewData['videoUrl']; ?>" type="video/mp4"> <source src="<?php echo $viewData['videoUrl']; ?>" type="video/mp4">
</video> </video>
<div class="text-right mt-2 mr-1">
<a class="btn btn-info" href="<?php echo $viewData['videoUrl']; ?>">
下载视频
</a>
</div>
</div> </div>

2
www/css/beauty.css

@ -127,6 +127,8 @@ a:link{text-decoration:none}
.videoplayer{max-width:800px;margin:0 auto;text-align:center} .videoplayer{max-width:800px;margin:0 auto;text-align:center}
.videoplayer video{width:100%} .videoplayer video{width:100%}
.videotitle{max-width:600px;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis} .videotitle{max-width:600px;overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis}
.mt-2{margin-top:2em}
.mr-1{margin-right:1em}
@media screen and (max-width: 1199px) { @media screen and (max-width: 1199px) {
.im_item { .im_item {

Loading…
Cancel
Save