歌词同步歌曲

歌词.gif

html代码

    都选C - 赵英俊
    拥抱你 - 易烊千玺、关晓彤、王嘉
    我们都一样 - 张杰
    追梦赤子心 - 鹿晗

    css样式

    body{
        background: linear-gradient(to top left,#000033,#000088,#000033);
    }
    .wrap{
        width: 1050px;
        height: 650px;
        margin: 100px auto;
        position: relative;
        box-shadow: 0 0 50px #000033; 
    }
    .imgs{
        position: absolute;
        top: 0;
        right: 0;
        width: 800px;
        height: 100%;
        overflow: hidden;
    }
    .imgs img{
        transition: 2s;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }
    .imgs img:nth-of-type(1){
        opacity: 1;
    }
    .box{
        width: 800px;
        height: 200px;
        overflow: hidden;
        position: absolute;
        top: 150px;
        right: 0;
        z-index: 10;
    }
    ul{
        width: 800px;
        position: absolute;
        list-style-type: none;
        margin: 0;
        padding: 0;
        text-align: center;
        color: deepskyblue;
        line-height: 40px;
        font-weight: 700;
        top: 80px;
    }
    li{
        opacity: 0.5;
    }
    audio{
        width: 800px;
        position: absolute;
        bottom: 0;
        right: 0;
        opacity: 0.8;
    }
    ol{
        list-style-type: none;
        padding: 0;
        margin: 0;
        position: absolute;
        left: 0;
        z-index: 10;
        width: 250px;
        height: 100%;
        font-size: 14px;
        background: rgba(123,104,238,0.9);
    }
    dl{
        height: 40px;
        background: #eee;
        margin: 5px 0;
        padding: 0 10px;
        line-height: 40px;
        font-weight: 700;
        cursor: pointer;
    }
    

    JS代码

    
    
    

    PHP代码

    
    

    下载地址:

    https://github.com/lyyqxdi/songWords/upload/master

    你可能感兴趣的:(歌词同步歌曲)