标签:lin import m3u app div control head upx char
//head里面的内容,我是采用cdn引用的方式,因为项目太小
//只粘贴了不分代码,都是主要的,只要视频没问题,如果不能播放,建议换一个视频源,代码绝对没问题 都可以播放,下面video样式那里,一共三层,
<head>
<meta charset="utf-8" />
<title>二级造价</title>
<script src="https://cdn.bootcss.com/vue/2.5.20/vue.min.js"></script>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script src="https://cdn.bootcss.com/video.js/7.7.6/video.min.js"></script>
<link href="https://cdn.bootcss.com/video.js/7.7.6/video-js.min.css" rel="stylesheet">
</head>
<div class="shipin">
<video id="my-player" height="350upx" width="850px" class="video-js" controls preload="auto" data-setup=‘{}‘>
<source src="路径"
type="application/x-mpegURL">
</video>
</div>
//css
.shipin{
margin-top: 1.5625rem;
display: flex;
justify-content: center;
}
.shipin video{
width: 100% !important
}
标签:lin import m3u app div control head upx char
原文地址:https://www.cnblogs.com/uniapp/p/12665942.html