From 5e2205ecdc00eac0c3e2f2a189b32742439ecec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Thu, 19 Oct 2023 09:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=9C=A8flex=E4=B8=AD?= =?UTF-8?q?=E8=A2=AB=E6=8C=A4=E5=8E=8B=E5=8F=98=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music.js b/src/music.js index 2a40c18..f50fb5e 100644 --- a/src/music.js +++ b/src/music.js @@ -8,6 +8,7 @@ export default class MusicList { this.audio = new Audio() this.audio.autoplay = true this.audio.controls = true + this.audio.style.flexShrink = 0 // 防止在flex中被挤压变形 this.audio.addEventListener('play', () => { this.event.onplay(this.playing) }) @@ -29,7 +30,6 @@ export default class MusicList { whiteSpace: 'nowrap', overflowX: 'hidden', // 溢出时隐藏 overflowY: 'auto', // 溢出时显示滚动条 - maxHeight: '70vh', // 最大高度 listStyle: 'disc', // 实心圆 padding: '0 1.1rem', // 列表左右留白 }