为你的hexo博客添加全局吸底并且收入侧边栏的Aplayer
为你的hexo博客添加全局吸底并且收入侧边栏的Aplayer
最终效果

1.收入侧边栏

找到butterfly配置文件APlayer.min.css把他下载下来,上图第一个
复制代码进入https://tool.oschina.net/codeformat/css格式化
由于.aplayer-body已经开启了fixed定位,只要简单修改一下left并设置最高优先级即可收入侧边栏
我们只需要在css中加入以下代码即可实现收入侧边栏
在代码最后加入即可
1 | .aplayer.aplayer-narrow .aplayer-body { |
2.歌词颜色修改
1 | .aplayer .aplayer-lrc p.aplayer-lrc-current { |
找到如上代码修改如下
1 | .aplayer .aplayer-lrc p.aplayer-lrc-current { |
1 | .aplayer .aplayer-lrc p { |
再修改上面css样式为
1 | .aplayer .aplayer-lrc p { |
3.最后
保存这个css,替换主题配置文件中的Aplayer.min.css即可

本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CodeLorin's Blog!
评论

本站已经全站启用pjax


