【H5 音乐播放实例】第六节 其他
2018-06-27 本文已影响76人
剽悍一小兔
1.3音乐简介
![](https://img.haomeiwen.com/i1929342/97669ece6fbad9f8.png)
![](https://img.haomeiwen.com/i1929342/7173cd05a1b7d609.png)
![](https://img.haomeiwen.com/i1929342/0a865c78b0554c85.png)
效果:
![](https://img.haomeiwen.com/i1929342/f0d189a56edaa5ba.png)
1.4评论框和评论按钮
代码写在歌曲简介DIV的下面:
<!-- 用户评论 -->
<div style="width: 100%; min-height: 220px; z-index: 0;margin-top: 28px;" class="commentBox" contenteditable="true">
<textarea id="commentInputBox"></textarea>
</div>
css:
![](https://img.haomeiwen.com/i1929342/4643183ff572affa.png)
效果:
![](https://img.haomeiwen.com/i1929342/f8dbe82be4c8e037.png)
发表评论的按钮
![](https://img.haomeiwen.com/i1929342/168716ccaad1d2ac.png)
![](https://img.haomeiwen.com/i1929342/f8c0fc709620d64a.png)
效果:
![](https://img.haomeiwen.com/i1929342/55d0f2f5cff8ec0d.png)
1.5 评论区域
![](https://img.haomeiwen.com/i1929342/df8ac60e966a67d8.png)
css:
.comments {border: 1px dotted #666;margin-top:38px;}
.comments .comment {
border: 1px dotted #666;
height: 200px;
}
.comments .comment .c_left {
width: 25%;
border: 1px dotted #666;
height: 100%;
float: left;
position: relative;
}
.comments .comment .c_right {
width: 74%;
height: 100%;
float: left;
}
.comments .comment .c_right .c_contentBox {
height: 160px;
}
.comments .comment .c_right .c_contentBox .c_content{
padding:20px;
color:#252424;
}
.comments .comment .c_right .c_bottom {
height: 40px;
border-top: 1px solid #8A8585;
}
.comments .comment .c_right .c_bottom .time {
margin-left: 6px;
line-height: 35px;
color: #222;
}
.comments .comment .c_right .c_bottom .reply {
float: right;
margin: 8px 12px;
}
.comments .comment .c_right .c_bottom .reply a {
text-decoration: none;
color: #293F7D;
font-weight: 600;
}
Html:
![](https://img.haomeiwen.com/i1929342/7c3a28c531c5fc0e.png)
![](https://img.haomeiwen.com/i1929342/169f283a5d5db6f5.png)