<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>您有一条语音消息</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
max-width: 32rem;
margin-left: auto;
margin-right: auto;
margin-bottom: 50px;
}
h1 {
font-size: 34px;
color: #333;
margin: 30px 0 10px;
}
h3 {
margin-top: 20px;
color: #999;
font-weight: normal;
letter-spacing: 1px;
}
.aplayer-wrap {
max-width: 90%;
margin: 20px 0;
}
</style>
</head>
<body>
<div style="width: 100%; height: 70%; text-align: center;">
<br/><br/><br/>
<h1>您有一条语音消息</h1>
<h3>🍭请点击收听☟</h3>
</div>
<center>
<div class="aplayer-wrap">
<div id="player" class="aplayer"></div>
<h3>☝请点击收听☝</h3>
</div></center>
<script src="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.css">
<script>
const ap = new APlayer({
container: document.getElementById('player'),
listFolded: false,
fixed: false, //吸底模式
mini: true, //迷你模式
listMaxHeight: 900,
volume: 0.4,
audio: [
{
name: '哪里都是你-队长',
artist: '哪里都是你',
url: '10082346.mp3',
cover: 'Cover.jpg',
theme: '#F4A7B9'
}
]
});
</script>
</body>
效果预览