1. 程式人生 > >H5視訊播放以及下載!

H5視訊播放以及下載!

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title></title>
</head>
<style>
    body{
        background: black;
    }
    .aaa{
        color:white;font-size: 22px;
        display: block;width: 100%;height:40px;
        background:gray;text-align: center;line-height: 40px;
        letter-spacing: 5px;text-decoration: none;
    }
</style>
<body>
    <video style="width: 100%;height:400px;" controls="controls" autoplay="autoplay">
          <source src="img/A.mp4" type="video/mp4" />
    </video> 
    <a class="aaa" href="img/A.mp4" download="w3logo">下載</a>
</body>
</html>