这是我的代码......我想我可能把我的视频文件放在了错误的地方
<video width="myFunctionW()" height="myFunctionH()" autoplay>
<source src="myVideo.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<script>
function myFunctionH() {
var h = window.innerHeight;
document.getElementById("demo").innerHTML = h;
}
function myFunctionW() {
var w = window.innerWidth;
document.getElementById("demo").innerHTML = w;
}
</script>