左下角音乐播放器插件代码
<!--  国外CDN源
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2.0.1/dist/Meting.min.js"></script>
-->
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.css">
<script src="https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/meting/2.0.1/Meting.min.js"></script>
 
<style>

:root {
  --primary-color: #8f4b28;       /* 你的主色 */
  --light-bg: #f8f1ec;           /* 非常淡的米白色背景 */
  --light-text: #5a5a5a;         /* 深灰色文字 */
  --lighter-accent: #e8d5c9;     /* 淡米色作为辅助色 */
  --progress-bar: #d4a373;       /* 中等棕橙色进度条 */
}

/* 主播放器样式 */
.aplayer {
    background: var(--light-bg) !important;
    color: var(--light-text) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* 信息区域 */
.aplayer-info {
    background: transparent !important;
}

/* 音乐标题 */
.aplayer-info .aplayer-music .aplayer-title {
    color: var(--primary-color) !important;
}

/* 作者文字 */
.aplayer-info .aplayer-music .aplayer-author {
    color: var(--light-text) !important;
    opacity: 0.8 !important;
}

/* 进度条 */
.aplayer .aplayer-info .aplayer-controller .aplayer-bar {
    background: #e0e0e0 !important;
    border-radius: 2px !important;
}
.aplayer .aplayer-info .aplayer-controller .aplayer-bar .aplayer-loaded {
    background: var(--lighter-accent) !important;
}
.aplayer .aplayer-info .aplayer-controller .aplayer-bar .aplayer-played {
    background: var(--progress-bar) !important;
}
.aplayer .aplayer-info .aplayer-controller .aplayer-bar .aplayer-played .aplayer-thumb {
    background: var(--primary-color) !important;
}

/* 时间文字 */
.aplayer .aplayer-info .aplayer-controller .aplayer-time {
    color: var(--light-text) !important;
}

/* 图标颜色 */
.aplayer .aplayer-icon path {
    fill: var(--light-text) !important;
}
.aplayer .aplayer-icon:hover path {
    fill: var(--primary-color) !important;
}

/* 播放列表 */
.aplayer .aplayer-list {
    background: var(--light-bg) !important;
}
.aplayer .aplayer-list ol li {
    color: var(--light-text) !important;
    background: var(--light-bg) !important;
}
.aplayer .aplayer-list ol li:hover {
    background: var(--lighter-accent) !important;
}
.aplayer .aplayer-list ol li.aplayer-list-light {
    background: var(--lighter-accent) !important;
    color: var(--primary-color) !important;
}

/* 歌词 */
.aplayer .aplayer-lrc p {
    color: var(--light-text) !important;
}
.aplayer .aplayer-lrc p.aplayer-lrc-current {
    color: var(--primary-color) !important;
}

/* 迷你模式 */
.aplayer.aplayer-narrow .aplayer-body {
    background: var(--light-bg) !important;
}

/* 固定模式 */
.aplayer.aplayer-fixed .aplayer-body {
    background: var(--light-bg) !important;
    border-top: 1px solid var(--lighter-accent) !important;
}

.aplayer {
    background: var(--light-bg) !important;
    color: var(--light-text) !important;
    border-radius: 12px !important;
}

.aplayer-icon {
    border-radius: 50px;
}

/* 主播放器圆角 */
.aplayer {
    border-radius: 12px !important;
}

/* 迷你模式圆角 */
.aplayer.aplayer-narrow .aplayer-body,
.aplayer.aplayer-narrow .aplayer-pic {
    border-radius: 12px !important;
}

/* 播放按钮圆角 */
.aplayer .aplayer-pic .aplayer-play,
.aplayer .aplayer-pic .aplayer-pause {
    border-radius: 50% !important;
}

/* 进度条圆角 */
.aplayer .aplayer-info .aplayer-controller .aplayer-bar {
    border-radius: 2px !important;
}

/* 音量条圆角 */
.aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar {
    border-radius: 2.5px !important;
}

/* 播放列表项圆角 */
.aplayer .aplayer-list ol li {
    border-radius: 6px !important;
    margin: 2px 5px !important;
}

/* 固定模式下的播放列表圆角 */
.aplayer.aplayer-fixed .aplayer-list {
    border-radius: 12px 12px 0 0 !important;
}

/* 通知提示圆角 */
.aplayer .aplayer-notice {
    border-radius: 12px !important;
}

/* 迷你切换按钮圆角 */
.aplayer .aplayer-miniswitcher {
    border-radius: 0 12px 12px 0 !important;
}

/* 播放列表滚动条圆角 */
.aplayer .aplayer-list ol::-webkit-scrollbar-thumb {
    border-radius: 4px !important;
}

/* 歌词背景圆角 */
.aplayer.aplayer-withlrc .aplayer-pic {
    border-radius: 12px 0 0 12px !important;
}

/* 固定模式下的播放器主体圆角 */
.aplayer.aplayer-fixed .aplayer-body {
    border-radius: 12px 12px 12px 12px !important;
}
</style>
 
<meting-js 
    server="netease" 
    type="playlist" 
    id="10176804001"
    fixed="true" 
    mini="true"
    order="random"
    loop="all"
    preload="auto"
    list-folded="false">
</meting-js>
暂无评论

发送评论 编辑评论


				
上一篇
下一篇