【H5 音樂播放實例】第六節 其他

1.3音樂簡介




效果:


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:



效果:


發表評論的按鈕


效果:


1.5 評論區域


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:


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章