打开/关闭搜索
搜索
打开/关闭菜单
7
248
64
1240
失传媒体中文维基
导航
首页
最近更改
随机页面
特殊页面
上传文件
帮助
维基语法
编者入门
社区
最近评论
其他
最近更改
特殊页面
所有页面
管理
编辑侧栏
通用CSS
主题CSS
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁Template:音频”︁的源代码
模板页面
更多语言
更多操作
←
Template:音频
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您请求的操作仅限属于该用户组的用户执行:
管理员
您可以查看和复制此页面的源代码。
<includeonly> {{#css: /* 音频播放器样式(使用 CSS 扩展嵌入) */ .custom-audio-player { display: flex; align-items: center; gap: 10px; background: #f5f5f5; border-radius: 40px; padding: 8px 16px; max-width: 400px; border: 1px solid #ddd; font-family: sans-serif; } .custom-audio-player audio { display: none; /* 隐藏原生控件,使用自定义按钮 */ } .custom-audio-player .play-pause { background: #4CAF50; border: none; color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: 0.2s; } .custom-audio-player .play-pause:hover { background: #45a049; } .custom-audio-player .play-pause.playing::before { content: "⏸️"; /* 暂停图标 */ } .custom-audio-player .play-pause::before { content: "▶️"; /* 播放图标 */ } .custom-audio-player .download-btn { background: #2196F3; color: white; text-decoration: none; padding: 6px 12px; border-radius: 20px; font-size: 14px; margin-left: auto; transition: 0.2s; } .custom-audio-player .download-btn:hover { background: #0b7dda; } .custom-audio-player .filename { color: #333; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; } }} </includeonly> <div class="custom-audio-player" data-audio="{{filepath:{{{音频|}}}}}"> <audio src="{{filepath:{{{音频|}}}}}" preload="none"></audio> <button class="play-pause" title="播放/暂停"></button> <span class="filename">{{PAGENAME:{{{音频|}}}}}</span> <a class="download-btn" href="{{fullurl:File:{{{音频|}}}}}" target="_blank" title="下载">下载</a> </div>
返回
Template:音频
。
查看“︁Template:音频”︁的源代码
模板页面