info_video.html 3.79 KB
<style>
.v_play{ width: 100%; height: 100%; position: absolute; top:0; left: 0;
display: flex; justify-content: center;  align-items: center;}
.v_play img{width: 60px; height: 60px}

.video{
display: none;
}

.videos{
width: 100%;
height: 100%;
}

.video-picture-rim{
height: 40px;
text-align: center;
line-height: 32px;
position: relative;
top: -28px;
padding-left: 288px;
}

.picture{
width: 55px;
height: 30px;
border-radius: 12px;
background: #dcdcdc;
font-size: 15px;
margin-left: 30px;
line-height: 30px;
text-align: center;

}
.click-play{
position: absolute;
top:0px;
left: 0px;
/*display: flex;*/
/*align-content: center;*/
padding-top: 30%;
width: 100%;
height: 100%;
padding-left: 40%;

}
.video-font{
width: 60px;
height: 32px;
border-radius: 12px;
background: #dcdcdc;
font-size: 15px;
line-height: 32px;

}
.commodity-video{
object-fit:fill;
width: 100%;
height: 100%;
}
.video-font:before{
content: "";
-webkit-backface-visibility: hidden;
width: 0;
height: 0;
border-width: 7px;
border-style: dashed;
border-color: transparent transparent transparent #000;
font-size: 0;
line-height: 0;
position: relative;
top: -5px;
left: 3px;
}

.video-fonts{
width:55px;
height: 30px;
border-radius: 12px;
background: #dcdcdc;
font-size: 15px;
line-height: 30px;

}
.video-fonts:before{
content: "";
-webkit-backface-visibility: hidden;
width: 0;
height: 0;
border-width: 6px;
border-style: dashed;
border-color: transparent transparent transparent #fff;
font-size: 0;
line-height: 0;
position: relative;
top: -4px;
left: 2px;
}
.ons{
color: #fff; background:#c7161e;
}
#fenxian{display: block;  position: fixed;  z-index: 6;}
.click-playssss{display: flex;width:100%;justify-content: center}
.video_pic{position: absolute;bottom:10px;left:0; width: 100%;}

.pic_num_set{position: absolute;bottom:10px;right:10px; display: none; text-align: center; line-height: 25px; border-radius:12px ;
width: 45px; height: 25px; background-color: rgba(9,9,9,0.5); color: #f0f2f5}

#show_video{position: fixed; width: 100%; height: 100%;top:0; left:0;z-index: 1000; background-color: rgb(3,3,3);
display:none;}
.video_close{position: absolute; top:5px; right:5px;border: 1px solid #fff;color: #fff;
border-radius: 50%; width: 30px; height: 30px; font-size: 30px; text-align: center; line-height: 30px}
.price-number{
width: 99%;
height: 50px;
border: 1px solid #8f949a;
display: flex;
margin-top: 7px;
margin-bottom: 7px;
}
.one-tab{
width: 25%;
height: 50px;
line-height: 37px;
color: #fff;
font-family: 'Arial Normal', 'Arial';
background-color: #c51933;
font-size: 13px;
text-align: center;
}
.two-tab{
width: 25%;
height: 50px;
line-height: 30px;
font-family: 'Arial Normal', 'Arial';
text-align: center;
border-left: 1px solid #8f949a;
color: #77668d;
}
.number{
font-size: 13px;
width: 100%;
height: 15px;
color: #fff;
letter-spacing:5px;
}

/*.price{*/
/*font-size: 13px;*/
/*width: 100%;*/
/*height: 15px;*/
/*color: #fff;*/
/*letter-spacing:5px;*/
/*margin-top: 2px;*/
/*}*/

.number-val{
font-size: 13px;
width: 100%;
height: 15px;
margin-top: 2px;
}
.price-val{
font-size: 13px;
width: 100%;
height: 15px;
margin-top: 2px;
}
</style>

<!---显示视频--->
<div id="show_video">
    <video id='movie' x5-video-player-type='h5'
           webkit-playsinline="true"
           playsinline="true"
           x5-playsinline src=''  class='videos' controls='controls'>
    </video>
    <div class="video_close">×</div>
</div>

<script>
    /* --点击图片播放视频---*/
    function play_video(ob) {
        $("#navBox").hide();
        var v_url=$(ob).attr("v_url");
        $("#show_video").show();
        $("#movie").attr("src",v_url);
        var movie=document.getElementById("movie");
        movie.play();
    }

    //----关闭视频播放-----
    $(".video_close").click(function () {
        $("#show_video").hide();
        $("#navBox").show();
    });
</script>