This commit is contained in:
2023-10-01 03:57:01 +08:00
parent f0544c3148
commit 68b741af74
1 changed files with 15 additions and 30 deletions

View File

@ -35,36 +35,21 @@ export default class MusicList {
} }
} }
//// 写入 css 样式到 head //// 写入 css 样式到 head
//const style = document.createElement('style') const style = document.createElement('style')
//style.innerText = ` style.innerText = `
// ul.music-list { ul.music-list > li {
// width: 600px; cursor: pointer;
// height: 100%; }
// overflow: auto; ul.music-list > li > button {
// background-color: #ffffff; margin-left: 10px;
// box-shadow: 0 0 15px #ccc; border: none;
// border-radius: 5px; cursor: pointer;
// padding: 1rem 2rem; }
// margin: 1rem; ul.music-list > li > button:hover {
// } background-color: #ccc;
// ul.music-list > li { }
// list-style: none; `
// padding: 10px; document.head.appendChild(style)
// border-bottom: 1px solid #ccc;
// cursor: pointer;
// }
// ul.music-list > li:hover {
// background-color: #ddd;
// }
// ul.music-list > li > button {
// margin-right: 10px;
// }
// ul.music-list > li > button:hover {
// background-color: #ccc;
// }
// ul.music-list > li
// `
//document.head.appendChild(style)
document.body.appendChild(input) document.body.appendChild(input)
} }
// 添加回调函数 // 添加回调函数