Player:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
<html> | <html> | ||
<style> | <!DOCTYPE html> | ||
<head> | |||
<meta charset="UTF-8"> | |||
<style> | |||
body { | |||
margin: 0; | |||
background: transparent; | |||
} | |||
#controls { | |||
display: flex; | |||
justify-content: center; | |||
gap: 12px; | |||
padding: 8px; | |||
font-family: sans-serif; | |||
} | |||
button { | |||
background-color: #222; | |||
color: white; | |||
border: 1px solid #444; | |||
border-radius: 6px; | |||
padding: 6px 12px; | |||
font-size: 14px; | |||
cursor: pointer; | |||
} | |||
</style> | button:hover { | ||
background-color: #444; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<audio id="bgm" src="https://d1rtq9slcl72gh.cloudfront.net/audio/home.mp3" autoplay loop></audio> | |||
<div id="controls"> | |||
<button onclick="document.getElementById('bgm').play()">▶ 播放音乐</button> | |||
<div id="controls"> | <button onclick="document.getElementById('bgm').pause()">⏸ 暂停</button> | ||
</div> | |||
</body> | |||
</div> | |||
</html> | </html> |
2025年6月4日 (三) 21:43的版本