打造个性化jQuery UI音乐播放器与主题定制
1. 音乐播放器时间标签添加
在音乐播放器中,添加显示当前播放时间和总时长的标签是基础步骤。这两个标签的实现较为直接,以下是相关代码:
- CSS代码 :
.mplayer .currenttime { position: absolute; top: 0.6em; left: 2.2em;
width: 3em; text-align: center; background: none; border: none; }
.mplayer .duration { position: absolute; top: 0.6em; right: 2.2em;
width: 3em; text-align: center; background: none; border: none; }
- HTML代码 :
<div class="mplayer ui-widget">
<div class="buttons-container">
<a class="playpause ui-state-default ui-corner-all" href="#">
<span class="ui-icon ui-icon
超级会员免费看
订阅专栏 解锁全文
6

被折叠的 条评论
为什么被折叠?



