博客应用悬浮音乐方法
标签搜索

博客应用悬浮音乐方法

gps
gps
2025-06-11 / 0 评论 / 1 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2025年08月08日,已超过153天没有更新,若内容或图片失效,请留言反馈。
AI摘要:本文介绍了在Typecho博客中添加悬浮音乐播放器的方法。首先,需要找到博客主题的路径,然后将提供的代码插入到footer.php文件末尾。完成后,博客将展示一个悬浮音乐播放器。

Powered by AISummary.

效果展示

打开博客展示悬浮音乐
悬浮音乐示例.png

实现步骤

1、找到typecho博客引用的主题的路径
/www/wwwroot/gpsnb.com/usr/themes/butterfly

2、将以下的代码插入到“footer.php”文件末尾

<div id="xf-MusicPlayer" data-cdnName="https://player.xfyun.club/js"   data-songList="8192282166"data-fadeOutAutoplay data-memory="1" data-random="true"></div>
<script src="https://player.xfyun.club/js/xf-MusicPlayer/js/xf-MusicPlayer.min.js"></script>

如图所示
悬浮音乐代码.png

OK!你已经完成操作啦~

0

评论 (0)

取消